public interface ShortCollection extends java.util.Collection<java.lang.Short>, ShortIterable, ISizeProvider
Collection that reduces (un)boxingISizeProvider.CollectionSize| Modifier and Type | Method and Description |
|---|---|
boolean |
add(short o)
A Type-Specific add function to reduce (un)boxing
|
default boolean |
add(java.lang.Short o)
Deprecated.
Please use the corresponding type-specific function instead.
|
default boolean |
addAll(short... e)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
default boolean |
addAll(short[] e,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
default boolean |
addAll(short[] e,
int offset,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
boolean |
addAll(ShortCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
default boolean |
contains(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
contains(short o)
A Type-Specific contains function to reduce (un)boxing
|
boolean |
containsAll(ShortCollection c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(ShortCollection c)
A Type-Specific containsAny function to reduce (un)boxing
|
ShortCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
ShortIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
default java.util.stream.IntStream |
parallelPrimitiveStream()
Returns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.
|
default <E extends ShortCollection> |
pour(E collection)
A Helper function to reduce the usage of Streams and allows to collect all elements
|
default java.util.stream.IntStream |
primitiveStream()
Returns a Java-Type-Specific Stream to reduce boxing/unboxing.
|
default boolean |
remIf(java.util.function.IntPredicate filter)
A Type-Specific removeIf function to reduce (un)boxing.
|
default boolean |
remove(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
removeAll(ShortCollection c)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
removeAll(ShortCollection c,
ShortConsumer r)
A Type-Specific removeAll function that reduces (un)boxing.
|
default boolean |
removeIf(java.util.function.Predicate<? super java.lang.Short> filter)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
remShort(short o)
A Type-Specific remove function that reduces (un)boxing.
|
boolean |
retainAll(ShortCollection c)
A Type-Specific retainAll function that reduces (un)boxing.
|
boolean |
retainAll(ShortCollection c,
ShortConsumer r)
A Type-Specific retainAll function that reduces (un)boxing.
|
default ShortSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
default ShortCollection |
synchronize()
Creates a Wrapped Collection that is Synchronized
|
default ShortCollection |
synchronize(java.lang.Object mutex)
Creates a Wrapped Collection that is Synchronized
|
short[] |
toShortArray()
A Type-Specific toArray function that delegates to
toShortArray(short[]) with a newly created array. |
short[] |
toShortArray(short[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
default ShortCollection |
unmodifiable()
Creates a Wrapped Collection that is unmodifiable
|
addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, forEachIndexed, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedof, sizeboolean add(short o)
o - the element that should be addedboolean addAll(ShortCollection c)
c - the collection of elements that should be addeddefault boolean addAll(short... e)
e - the elements that should be addeddefault boolean addAll(short[] e,
int length)
e - the elements that should be addedlength - how many elements of the array should be addeddefault boolean addAll(short[] 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 contains(short o)
o - the element that is checked forboolean containsAll(ShortCollection c)
c - the collection of elements that should be tested forboolean containsAny(ShortCollection c)
c - the collection of elements that should be tested for@Deprecated boolean containsAny(java.util.Collection<?> c)
c - the collection of elements that should be tested forboolean remShort(short o)
o - the element that should be removedCollection.remove(Object)boolean removeAll(ShortCollection c)
c - the collection of elements that should be removedCollection.removeAll(Collection)boolean removeAll(ShortCollection c, ShortConsumer r)
c - the collection of elements that should be removedr - elements that got removedCollection.removeAll(Collection)boolean retainAll(ShortCollection c)
c - the collection of elements that should be keptCollection.retainAll(Collection)boolean retainAll(ShortCollection c, ShortConsumer r)
c - the collection of elements that should be keptr - elements that got removedCollection.retainAll(Collection)default <E extends ShortCollection> E pour(E collection)
pour in interface ShortIterableE - the collection typecollection - that the elements should be inserted toShortCollection copy()
short[] toShortArray()
toShortArray(short[]) with a newly created array.toShortArray in interface ShortIterableCollection.toArray()short[] toShortArray(short[] a)
a - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])@Deprecated default boolean removeIf(java.util.function.Predicate<? super java.lang.Short> filter)
This default implementation delegates to the corresponding type-specific function.
removeIf in interface java.util.Collection<java.lang.Short>default boolean remIf(java.util.function.IntPredicate filter)
Removes elements that were selected by the filter
filter - Filters the elements that should be removedjava.lang.NullPointerException - if filter is nullCollection.removeIf(Predicate)@Deprecated default boolean add(java.lang.Short o)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.Collection<java.lang.Short>@Deprecated default boolean contains(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
contains in interface java.util.Collection<java.lang.Short>@Deprecated default boolean remove(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Short>ShortIterator iterator()
iterator in interface java.util.Collection<java.lang.Short>iterator in interface java.lang.Iterable<java.lang.Short>iterator in interface ShortIterableCollection.iterator()default ShortCollection synchronize()
ShortCollections.synchronize(speiger.src.collections.shorts.collections.ShortCollection)default ShortCollection synchronize(java.lang.Object mutex)
mutex - is the controller of the synchronization blockShortCollections.synchronize(speiger.src.collections.shorts.collections.ShortCollection)default ShortCollection unmodifiable()
ShortCollections.unmodifiable(speiger.src.collections.shorts.collections.ShortCollection)default java.util.stream.IntStream primitiveStream()
default java.util.stream.IntStream parallelPrimitiveStream()
default ShortSplititerator spliterator()
spliterator in interface java.util.Collection<java.lang.Short>spliterator in interface java.lang.Iterable<java.lang.Short>spliterator in interface ShortIterable