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(ShortCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
if this is a primitive collection
|
boolean |
containsAny(ShortCollection c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection.
|
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 |
remShort(short e)
A Type-Specific implementation of remove.
|
boolean |
retainAll(ShortCollection c)
A Type-Specific implementation of retainAll.
|
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, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, parallelPrimitiveStream, primitiveStream, remIf, removeIf, spliteratorclear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArrayforEach, forEachpublic 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 added@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 null@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 retainAll(ShortCollection c)
retainAll in interface ShortCollectionc - the elements that should be keptjava.lang.NullPointerException - if the collection is nullCollection.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[])