Package com.yahoo.collections
Class LazySet<E>
- java.lang.Object
-
- com.yahoo.collections.LazySet<E>
-
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
public abstract class LazySet<E> extends Object implements Set<E>
- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description LazySet()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 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()
protected abstract Set<E>
newDelegate()
static <E> LazySet<E>
newHashSet()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
int
size()
Object[]
toArray()
<T> T[]
toArray(T[] a)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
spliterator
-
-
-
-
Method Detail
-
size
public final int size()
-
isEmpty
public final boolean isEmpty()
-
contains
public final boolean contains(Object o)
-
toArray
public final Object[] toArray()
-
toArray
public final <T> T[] toArray(T[] a)
-
add
public final boolean add(E e)
-
remove
public final boolean remove(Object o)
-
containsAll
public final boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceSet<E>
-
addAll
public final boolean addAll(Collection<? extends E> c)
-
retainAll
public final boolean retainAll(Collection<?> c)
-
removeAll
public final boolean removeAll(Collection<?> c)
-
clear
public final void clear()
-
hashCode
public final int hashCode()
-
equals
public final boolean equals(Object obj)
-
newHashSet
public static <E> LazySet<E> newHashSet()
-
-