E
- Type of itempublic final class StickyCollection<E> extends Object implements Collection<E>
There is no thread-safety guarantee.
Constructor and Description |
---|
StickyCollection(Collection<E> list)
Ctor.
|
StickyCollection(E... items)
Ctor.
|
StickyCollection(Iterable<E> items)
Ctor.
|
StickyCollection(Iterator<E> items)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E element) |
boolean |
addAll(Collection<? extends E> collection) |
void |
clear() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
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
@SafeVarargs public StickyCollection(E... items)
items
- The arraypublic StickyCollection(Iterator<E> items)
items
- The arraypublic StickyCollection(Collection<E> list)
list
- The iterablepublic int size()
size
in interface Collection<E>
public boolean isEmpty()
isEmpty
in interface Collection<E>
public boolean contains(Object object)
contains
in interface Collection<E>
public Object[] toArray()
toArray
in interface Collection<E>
public <T> T[] toArray(T[] array)
toArray
in interface Collection<E>
public boolean add(E element)
add
in interface Collection<E>
public boolean remove(Object object)
remove
in interface Collection<E>
public boolean containsAll(Collection<?> collection)
containsAll
in interface Collection<E>
public boolean addAll(Collection<? extends E> collection)
addAll
in interface Collection<E>
public boolean removeAll(Collection<?> collection)
removeAll
in interface Collection<E>
public boolean retainAll(Collection<?> collection)
retainAll
in interface Collection<E>
public void clear()
clear
in interface Collection<E>
Copyright © 2017 Cactoos. All rights reserved.