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 boolean
add(E e)
boolean
addAll(Collection<? extends E> c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
boolean
equals(Object obj)
int
hashCode()
boolean
isEmpty()
Iterator<E>
iterator()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
int
size()
Object[]
toArray()
<T> T[]
toArray(T[] a)
String
toString()
-
Constructor Details
-
MostlySingletonSet
public MostlySingletonSet()
-
-
Method Details
-
add
-
addAll
-
clear
public void clear() -
remove
-
removeAll
-
retainAll
-
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in 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)
-