T - the type of elements maintained by this Collectionpublic static class ObjectCollections.EmptyCollection<T> extends AbstractObjectCollection<T>
| Constructor and Description |
|---|
EmptyCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T o) |
boolean |
addAll(ObjectCollection<T> c)
A Type-Specific addAll function to reduce (un)boxing
|
boolean |
addAll(T[] e,
int offset,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
containsAny(java.util.Collection<?> c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection
|
ObjectCollections.EmptyCollection<T> |
copy()
A Function that does a shallow clone of the Collection itself.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
ObjectIterator<T> |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeAll(ObjectCollection<T> c)
A Type-Specific implementation of removeAll.
|
boolean |
removeIf(java.util.function.Predicate<? super T> filter) |
boolean |
retainAll(java.util.Collection<?> c) |
boolean |
retainAll(ObjectCollection<T> c)
A Type-Specific implementation of retainAll.
|
int |
size() |
java.lang.Object[] |
toArray() |
<E> E[] |
toArray(E[] a) |
containsAll, containsAny, removeAll, retainAlladdAll, addAll, pour, spliterator, synchronize, synchronize, toArray, unmodifiablearrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic boolean add(T o)
public boolean addAll(ObjectCollection<T> c)
ObjectCollectionaddAll in interface ObjectCollection<T>addAll in class AbstractObjectCollection<T>c - the collection of elements that should be addedpublic boolean addAll(T[] e, int offset, int length)
ObjectCollectione - the elements that should be addedoffset - where to start within the arraylength - how many elements of the array should be addedpublic boolean contains(java.lang.Object o)
public boolean containsAny(java.util.Collection<?> c)
AbstractObjectCollectioncontainsAny in interface ObjectCollection<T>containsAny in class AbstractObjectCollection<T>c - the elements that should be checked forpublic boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T>containsAll in class AbstractObjectCollection<T>public int hashCode()
hashCode in interface java.util.Collection<T>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<T>equals in class java.lang.Object@Deprecated public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public boolean removeIf(java.util.function.Predicate<? super T> filter)
public boolean removeAll(ObjectCollection<T> c)
AbstractObjectCollectionremoveAll in interface ObjectCollection<T>removeAll in class AbstractObjectCollection<T>c - the elements that should be deletedCollection.removeAll(Collection)public boolean retainAll(ObjectCollection<T> c)
AbstractObjectCollectionretainAll in interface ObjectCollection<T>retainAll in class AbstractObjectCollection<T>c - the elements that should be keptCollection.retainAll(Collection)public java.lang.Object[] toArray()
public <E> E[] toArray(E[] a)
public ObjectIterator<T> iterator()
ObjectCollectioniterator in interface java.lang.Iterable<T>iterator in interface java.util.Collection<T>iterator in interface ObjectCollection<T>iterator in interface ObjectIterable<T>iterator in class AbstractObjectCollection<T>Collection.iterator()public void clear()
public int size()
public ObjectCollections.EmptyCollection<T> copy()
ObjectCollectioncopy in interface ObjectCollection<T>copy in class AbstractObjectCollection<T>