Package com.yahoo.collections
Class LazySet<E>
java.lang.Object
com.yahoo.collections.LazySet<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
- Author:
- Simon Thoresen Hult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
final boolean
addAll
(Collection<? extends E> c) final void
clear()
final boolean
final boolean
containsAll
(Collection<?> c) final boolean
final int
hashCode()
final boolean
isEmpty()
iterator()
static <E> LazySet<E>
final boolean
final boolean
removeAll
(Collection<?> c) final boolean
retainAll
(Collection<?> c) final int
size()
final Object[]
toArray()
final <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
-
Constructor Details
-
LazySet
public LazySet()
-
-
Method Details
-
size
public final int size() -
isEmpty
public final boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public final <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceSet<E>
-
addAll
-
retainAll
-
removeAll
-
clear
public final void clear() -
hashCode
public final int hashCode() -
equals
-
newDelegate
-
newHashSet
-