X
- Element typepublic class CollectionEnvelope<X> extends Object implements Collection<X>
There is no thread-safety guarantee.
Constructor and Description |
---|
CollectionEnvelope(Scalar<Collection<X>> slr)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(X item) |
boolean |
addAll(Collection<? extends X> list) |
void |
clear() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> list) |
boolean |
isEmpty() |
Iterator<X> |
iterator() |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> list) |
boolean |
retainAll(Collection<?> list) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public CollectionEnvelope(Scalar<Collection<X>> slr)
slr
- The scalarpublic final int size()
size
in interface Collection<X>
public final boolean isEmpty()
isEmpty
in interface Collection<X>
public final boolean contains(Object object)
contains
in interface Collection<X>
public final Object[] toArray()
toArray
in interface Collection<X>
public final <T> T[] toArray(T[] array)
toArray
in interface Collection<X>
public final boolean add(X item)
add
in interface Collection<X>
public final boolean remove(Object object)
remove
in interface Collection<X>
public final boolean containsAll(Collection<?> list)
containsAll
in interface Collection<X>
public final boolean addAll(Collection<? extends X> list)
addAll
in interface Collection<X>
public final boolean removeAll(Collection<?> list)
removeAll
in interface Collection<X>
public final boolean retainAll(Collection<?> list)
retainAll
in interface Collection<X>
public final void clear()
clear
in interface Collection<X>
Copyright © 2017 Cactoos. All rights reserved.