02/28/2005
 

com.vignette.portal.cache
Class LinkedHashSet

java.lang.Object
  |
  +--com.vignette.portal.cache.LinkedHashSet
All Implemented Interfaces:
Collection, Set

public class LinkedHashSet
extends Object
implements Set

Similar to LinkedHashSet from JDK 1.4, except that this collection is affected by attempts to re-insert values into the collection. In a re-insertion, the value is moved to the end of the list. Note: This is not a complete Set implementation, so be weary in using it outside its current usages.


Constructor Summary
LinkedHashSet()
           
 
Method Summary
 boolean add(Object item)
           
 boolean addAll(Collection c)
           
 void clear()
           
 boolean contains(Object item)
           
 boolean containsAll(Collection c)
           
 Object get(int pos)
           
 Object getFirst()
           
 Object getLast()
           
 boolean isEmpty()
           
 Iterator iterator()
           
 boolean remove(Object item)
           
 boolean removeAll(Collection c)
           
 boolean retainAll(Collection c)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Set
equals, hashCode
 

Constructor Detail

LinkedHashSet

public LinkedHashSet()
Method Detail

size

public int size()
Specified by:
size in interface Set

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Set

contains

public boolean contains(Object item)
Specified by:
contains in interface Set

getFirst

public Object getFirst()

getLast

public Object getLast()

add

public boolean add(Object item)
Specified by:
add in interface Set

remove

public boolean remove(Object item)
Specified by:
remove in interface Set

removeAll

public boolean removeAll(Collection c)
Specified by:
removeAll in interface Set

retainAll

public boolean retainAll(Collection c)
Specified by:
retainAll in interface Set

clear

public void clear()
Specified by:
clear in interface Set

iterator

public Iterator iterator()
Specified by:
iterator in interface Set

get

public Object get(int pos)

toArray

public Object[] toArray()
Specified by:
toArray in interface Set

toArray

public Object[] toArray(Object[] a)
Specified by:
toArray in interface Set

containsAll

public boolean containsAll(Collection c)
Specified by:
containsAll in interface Set

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface Set

02/28/2005
 

Copyright and Trademark Notices