T - the type of elements maintained by this Collectionpublic abstract class AbstractObjectCollection<T> extends java.util.AbstractCollection<T> implements ObjectCollection<T>
| Constructor and Description |
|---|
AbstractObjectCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(ObjectCollection<T> c)
A Type-Specific addAll function to reduce (un)boxing
|
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
containsAll(ObjectCollection<T> c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAny(java.util.Collection<?> c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection
|
boolean |
containsAny(ObjectCollection<T> c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection.
|
ObjectCollection<T> |
copy()
A Function that does a shallow clone of the Collection itself.
|
abstract ObjectIterator<T> |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
removeAll(ObjectCollection<T> c)
A Type-Specific implementation of removeAll.
|
boolean |
removeAll(ObjectCollection<T> c,
java.util.function.Consumer<T> r)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
retainAll(ObjectCollection<T> c)
A Type-Specific implementation of retainAll.
|
boolean |
retainAll(ObjectCollection<T> c,
java.util.function.Consumer<T> r)
A Type-Specific retainAll function that reduces (un)boxing.
|
add, addAll, clear, contains, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAll, addAll, addAll, pour, spliterator, synchronize, synchronize, toArray, unmodifiableadd, addAll, clear, contains, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, size, stream, toArray, toArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic abstract 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 java.util.AbstractCollection<T>Collection.iterator()public boolean addAll(ObjectCollection<T> c)
ObjectCollectionaddAll in interface ObjectCollection<T>c - the collection of elements that should be addedpublic ObjectCollection<T> copy()
ObjectCollectioncopy in interface ObjectCollection<T>public boolean containsAll(ObjectCollection<T> c)
containsAll in interface ObjectCollection<T>c - the collection that should be checked if it contains all elements.java.lang.NullPointerException - if the collection is nullpublic boolean containsAll(java.util.Collection<?> c)
public boolean containsAny(java.util.Collection<?> c)
containsAny in interface ObjectCollection<T>c - the elements that should be checked forjava.lang.NullPointerException - if the collection is nullpublic boolean containsAny(ObjectCollection<T> c)
containsAny in interface ObjectCollection<T>c - the elements that should be checked forjava.lang.NullPointerException - if the collection is nullpublic boolean removeAll(ObjectCollection<T> c)
removeAll in interface ObjectCollection<T>c - the elements that should be deletedjava.lang.NullPointerException - if the collection is nullCollection.removeAll(Collection)public boolean removeAll(ObjectCollection<T> c, java.util.function.Consumer<T> r)
ObjectCollectionremoveAll in interface ObjectCollection<T>c - the collection of elements that should be removedr - elements that got removedCollection.removeAll(Collection)public boolean retainAll(ObjectCollection<T> c)
retainAll in interface ObjectCollection<T>c - the elements that should be keptjava.lang.NullPointerException - if the collection is nullCollection.retainAll(Collection)public boolean retainAll(ObjectCollection<T> c, java.util.function.Consumer<T> r)
ObjectCollectionretainAll in interface ObjectCollection<T>c - the collection of elements that should be keptr - elements that got removedCollection.retainAll(Collection)