public static class ShortCollections.SynchronizedCollection extends java.lang.Object implements ShortCollection
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(short o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(java.util.Collection<? extends java.lang.Short> c) |
boolean |
addAll(ShortCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(short o)
A Type-Specific contains function to reduce (un)boxing
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
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
|
boolean |
isEmpty() |
ShortIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remIf(java.util.function.IntPredicate filter)
A Type-Specific removeIf function to reduce (un)boxing.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
removeAll(ShortCollection c)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
remShort(short o)
A Type-Specific remove function that reduces (un)boxing.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(ShortCollection c)
A Type-Specific retainAll function that reduces (un)boxing.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
short[] |
toShortArray()
A Type-Specific toArray function that delegates to
ShortCollection.toShortArray(short[]) with a newly created array. |
short[] |
toShortArray(short[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, contains, parallelPrimitiveStream, primitiveStream, removeIf, spliteratorforEach, forEachpublic boolean add(short o)
ShortCollectionadd in interface ShortCollectiono - the element that should be addedpublic boolean addAll(java.util.Collection<? extends java.lang.Short> c)
addAll in interface java.util.Collection<java.lang.Short>public boolean addAll(ShortCollection c)
ShortCollectionaddAll in interface ShortCollectionc - the collection of elements that should be addedpublic boolean contains(short o)
ShortCollectioncontains in interface ShortCollectiono - the element that is checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Short>@Deprecated public boolean containsAny(java.util.Collection<?> c)
ShortCollectioncontainsAny in interface ShortCollectionc - the collection of elements that should be tested forpublic boolean containsAll(ShortCollection c)
ShortCollectioncontainsAll in interface ShortCollectionc - the collection of elements that should be tested forpublic boolean containsAny(ShortCollection c)
ShortCollectioncontainsAny in interface ShortCollectionc - the collection of elements that should be tested forpublic int size()
size in interface java.util.Collection<java.lang.Short>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Short>public 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 ShortIterableCollection.iterator()@Deprecated public boolean remove(java.lang.Object o)
ShortCollectionThis default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Short>remove in interface ShortCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Short>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Short>public boolean remShort(short o)
ShortCollectionremShort in interface ShortCollectiono - the element that should be removedCollection.remove(Object)public boolean removeAll(ShortCollection c)
ShortCollectionremoveAll in interface ShortCollectionc - the collection of elements that should be removedCollection.removeAll(Collection)public boolean retainAll(ShortCollection c)
ShortCollectionretainAll in interface ShortCollectionc - the collection of elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.IntPredicate filter)
ShortCollectionRemoves elements that were selected by the filter
remIf in interface ShortCollectionfilter - Filters the elements that should be removedCollection.removeIf(Predicate)public void clear()
clear in interface java.util.Collection<java.lang.Short>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Short>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Short>public short[] toShortArray()
ShortCollectionShortCollection.toShortArray(short[]) with a newly created array.toShortArray in interface ShortCollectionCollection.toArray()public short[] toShortArray(short[] a)
ShortCollectiontoShortArray 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[])