public abstract class AbstractShortCollection extends java.util.AbstractCollection<java.lang.Short> implements ShortCollection
| Constructor and Description |
|---|
AbstractShortCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Short e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Short> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(ShortCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
boolean |
contains(java.lang.Object e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
contains(short e)
A Type-Specific implementation of contains.
|
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
containsAll(ShortCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(ShortCollection c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection.
|
ShortCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
abstract ShortIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remove(java.lang.Object e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
removeAll(ShortCollection c)
A Type-Specific implementation of removeAll.
|
boolean |
removeAll(ShortCollection c,
ShortConsumer r)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
remShort(short e)
A Type-Specific implementation of remove.
|
boolean |
retainAll(ShortCollection c)
A Type-Specific implementation of retainAll.
|
boolean |
retainAll(ShortCollection c,
ShortConsumer r)
A Type-Specific retainAll function that reduces (un)boxing.
|
short[] |
toShortArray()
A Type-Specific implementation of toArray that links to
toShortArray(short[]) with a newly created array. |
short[] |
toShortArray(short[] a)
A Type-Specific implementation of toArray.
|
clear, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, addAll, addAll, parallelPrimitiveStream, pour, primitiveStream, remIf, removeIf, spliterator, synchronize, synchronize, unmodifiableclear, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic abstract ShortIterator iterator()
ShortCollectioniterator in interface java.lang.Iterable<java.lang.Short>iterator in interface java.util.Collection<java.lang.Short>iterator in interface ShortCollectioniterator in interface ShortIterableiterator in class java.util.AbstractCollection<java.lang.Short>Collection.iterator()@Deprecated public boolean add(java.lang.Short e)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.Collection<java.lang.Short>add in interface ShortCollectionadd in class java.util.AbstractCollection<java.lang.Short>public boolean addAll(ShortCollection c)
ShortCollectionaddAll in interface ShortCollectionc - the collection of elements that should be addedpublic ShortCollection copy()
ShortCollectioncopy in interface ShortCollection@Deprecated public boolean contains(java.lang.Object e)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
contains in interface java.util.Collection<java.lang.Short>contains in interface ShortCollectioncontains in class java.util.AbstractCollection<java.lang.Short>public boolean contains(short e)
contains in interface ShortCollectione - the element that should be searched for.@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Short> c)
This default implementation delegates to the corresponding type-specific function.
addAll in interface java.util.Collection<java.lang.Short>addAll in class java.util.AbstractCollection<java.lang.Short>public boolean containsAll(ShortCollection c)
containsAll in interface ShortCollectionc - 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)
containsAll in interface java.util.Collection<java.lang.Short>containsAll in class java.util.AbstractCollection<java.lang.Short>@Deprecated public boolean containsAny(java.util.Collection<?> c)
containsAny in interface ShortCollectionc - the elements that should be checked forjava.lang.NullPointerException - if the collection is nullpublic boolean containsAny(ShortCollection c)
containsAny in interface ShortCollectionc - the elements that should be checked forjava.lang.NullPointerException - if the collection is null@Deprecated public boolean remove(java.lang.Object e)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Short>remove in interface ShortCollectionremove in class java.util.AbstractCollection<java.lang.Short>public boolean remShort(short e)
remShort in interface ShortCollectione - the element that is searched forCollection.remove(Object)public boolean removeAll(ShortCollection c)
removeAll in interface ShortCollectionc - the elements that should be deletedjava.lang.NullPointerException - if the collection is nullCollection.removeAll(Collection)public boolean removeAll(ShortCollection c, ShortConsumer r)
ShortCollectionremoveAll in interface ShortCollectionc - the collection of elements that should be removedr - elements that got removedCollection.removeAll(Collection)public boolean retainAll(ShortCollection c)
retainAll in interface ShortCollectionc - the elements that should be keptjava.lang.NullPointerException - if the collection is nullCollection.retainAll(Collection)public boolean retainAll(ShortCollection c, ShortConsumer r)
ShortCollectionretainAll in interface ShortCollectionc - the collection of elements that should be keptr - elements that got removedCollection.retainAll(Collection)public short[] toShortArray()
toShortArray(short[]) with a newly created array.toShortArray in interface ShortCollectionCollection.toArray()public short[] toShortArray(short[] a)
toShortArray in interface ShortCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])