Package com.sun.faces.util
Class MostlySingletonSet<E>
java.lang.Object
com.sun.faces.util.MostlySingletonSet<E>
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,Set<E>
public class MostlySingletonSet<E> extends Object implements Set<E>, Serializable
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MostlySingletonSet() -
Method Summary
Modifier and Type Method Description booleanadd(E e)booleanaddAll(Collection<? extends E> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanequals(Object obj)inthashCode()booleanisEmpty()Iterator<E>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()Object[]toArray()<T> T[]toArray(T[] a)StringtoString()
-
Constructor Details
-
MostlySingletonSet
public MostlySingletonSet()
-
-
Method Details
-
add
-
addAll
-
clear
public void clear() -
remove
-
removeAll
-
retainAll
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
isEmpty
public boolean isEmpty() -
size
public int size() -
equals
-
hashCode
public int hashCode() -
toString
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a)
-