public abstract class AbstractMostlySingleton<T>
extends java.lang.Object
implements java.util.Set<T>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractMostlySingleton.State |
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<T> |
set |
protected AbstractMostlySingleton.State |
state |
protected T |
value |
Constructor and Description |
---|
AbstractMostlySingleton() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
isEmpty() |
java.util.Iterator<T> |
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() |
<S> S[] |
toArray(S[] a) |
java.lang.String |
toString() |
protected AbstractMostlySingleton.State state
protected T value
protected java.util.Collection<T> set
public int size()
public boolean isEmpty()
public java.util.Iterator<T> iterator()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean addAll(java.util.Collection<? extends T> c)
public java.lang.Object[] toArray()
public <S> S[] toArray(S[] a)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public boolean removeAll(java.util.Collection<?> c)