public class SingletonSet<E>
extends java.lang.Object
implements java.util.Set<E>
Constructor and Description |
---|
SingletonSet(E e) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E t) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
clear() |
boolean |
contains(java.lang.Object elem) |
boolean |
containsAll(java.util.Collection<?> c) |
protected <any> |
getStrategy() |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object [] |
toArray() |
<T> T [] |
toArray(T [] a) |
static <T> java.util.Set<T> |
withCustomStrategy(T o,
<any> strategy) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public SingletonSet(E e)
public int size()
public boolean contains(java.lang.Object elem)
public java.util.Iterator<E> iterator()
public java.lang.Object [] toArray()
public <T> T [] toArray(T [] a)
public boolean add(E t)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean addAll(java.util.Collection<? extends E> c)
public boolean retainAll(java.util.Collection<?> c)
public boolean removeAll(java.util.Collection<?> c)
public void clear()
public boolean isEmpty()
protected <any> getStrategy()
public static <T> java.util.Set<T> withCustomStrategy(T o, <any> strategy)