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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkedHashSet
public LinkedHashSet()
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
Copyright and Trademark Notices