T - the type of elements maintained by this Collectionpublic interface ObjectCollection<T> extends java.util.Collection<T>, ObjectIterable<T>
Collection that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(ObjectCollection<T> c)
A Type-Specific addAll function to reduce (un)boxing
|
default boolean |
addAll(T... e)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
default boolean |
addAll(T[] e,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
default boolean |
addAll(T[] e,
int offset,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
boolean |
containsAll(ObjectCollection<T> c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Returns true if any element of the Collection is found in the provided collection.
|
boolean |
containsAny(ObjectCollection<T> c)
A Type-Specific containsAny function to reduce (un)boxing
|
ObjectCollection<T> |
copy()
A Function that does a shallow clone of the Collection itself.
|
ObjectIterator<T> |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
default <E extends ObjectCollection<T>> |
pour(E collection)
A Helper function to reduce the usage of Streams and allows to collect all elements
|
boolean |
removeAll(ObjectCollection<T> c)
A Type-Specific removeAll function that reduces (un)boxing.
|
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 retainAll function that reduces (un)boxing.
|
boolean |
retainAll(ObjectCollection<T> c,
java.util.function.Consumer<T> r)
A Type-Specific retainAll function that reduces (un)boxing.
|
default ObjectSplititerator<T> |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
default ObjectCollection<T> |
synchronize()
Creates a Wrapped Collection that is Synchronized
|
default ObjectCollection<T> |
synchronize(java.lang.Object mutex)
Creates a Wrapped Collection that is Synchronized
|
default T[] |
toArray(Int2ObjectFunction<T[]> action)
A Helper function that simplifies the process of creating a new Array.
|
default ObjectCollection<T> |
unmodifiable()
Creates a Wrapped Collection that is unmodifiable
|
add, addAll, clear, contains, containsAll, 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, sortedboolean addAll(ObjectCollection<T> c)
c - the collection of elements that should be addeddefault boolean addAll(T... e)
e - the elements that should be addeddefault boolean addAll(T[] e, int length)
e - the elements that should be addedlength - how many elements of the array should be addeddefault boolean addAll(T[] e, int offset, int length)
e - the elements that should be addedoffset - where to start within the arraylength - how many elements of the array should be addedboolean containsAll(ObjectCollection<T> c)
c - the collection of elements that should be tested forboolean containsAny(ObjectCollection<T> c)
c - the collection of elements that should be tested forboolean containsAny(java.util.Collection<?> c)
c - the collection of elements that should be tested forboolean removeAll(ObjectCollection<T> c)
c - the collection of elements that should be removedCollection.removeAll(Collection)boolean removeAll(ObjectCollection<T> c, java.util.function.Consumer<T> r)
c - the collection of elements that should be removedr - elements that got removedCollection.removeAll(Collection)boolean retainAll(ObjectCollection<T> c)
c - the collection of elements that should be keptCollection.retainAll(Collection)boolean retainAll(ObjectCollection<T> c, java.util.function.Consumer<T> r)
c - the collection of elements that should be keptr - elements that got removedCollection.retainAll(Collection)default <E extends ObjectCollection<T>> E pour(E collection)
pour in interface ObjectIterable<T>E - the collection typecollection - that the elements should be inserted toObjectCollection<T> copy()
default T[] toArray(Int2ObjectFunction<T[]> action)
action - the array creation functionCollection.toArray(Object[])ObjectIterator<T> iterator()
iterator in interface java.util.Collection<T>iterator in interface java.lang.Iterable<T>iterator in interface ObjectIterable<T>Collection.iterator()default ObjectCollection<T> synchronize()
ObjectCollections.synchronize(speiger.src.collections.objects.collections.ObjectCollection<T>)default ObjectCollection<T> synchronize(java.lang.Object mutex)
mutex - is the controller of the synchronization blockObjectCollections.synchronize(speiger.src.collections.objects.collections.ObjectCollection<T>)default ObjectCollection<T> unmodifiable()
ObjectCollections.unmodifiable(speiger.src.collections.objects.collections.ObjectCollection<T>)default ObjectSplititerator<T> spliterator()
spliterator in interface java.util.Collection<T>spliterator in interface java.lang.Iterable<T>spliterator in interface ObjectIterable<T>