T - the element typepublic class LazySet<T>
extends java.lang.Object
implements java.util.Set<T>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<T> |
delegate
The delegate set
|
private static long |
serialVersionUID
The serialVersionUID
|
| Constructor and Description |
|---|
LazySet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T o) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
private java.util.Set<T> |
createImplementation()
Create the set implementation
|
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() |
<U> U[] |
toArray(U[] a) |
java.lang.String |
toString() |
private static final long serialVersionUID
private java.util.Set<T> delegate
private java.util.Set<T> createImplementation()
public boolean add(T o)
public boolean addAll(java.util.Collection<? extends T> c)
public void clear()
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean isEmpty()
public java.util.Iterator<T> iterator()
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public int size()
public java.lang.Object[] toArray()
public <U> U[] toArray(U[] a)
public java.lang.String toString()
toString in class java.lang.Object