public static class ShortCollections.EmptyCollection extends AbstractShortCollection
| Constructor and Description |
|---|
EmptyCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(short o)
A Type-Specific add function to reduce (un)boxing
|
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
|
void |
clear() |
boolean |
contains(short o)
A Type-Specific implementation of contains.
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
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.
|
ShortCollections.EmptyCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
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 implementation of removeAll.
|
boolean |
removeIf(java.util.function.Predicate<? super java.lang.Short> filter)
Deprecated.
|
boolean |
remShort(short o)
A Type-Specific implementation of remove.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(ShortCollection c)
A Type-Specific implementation of retainAll.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
short[] |
toShortArray()
A Type-Specific implementation of toArray that links to
AbstractShortCollection.toShortArray(short[]) with a newly created array. |
short[] |
toShortArray(short[] a)
A Type-Specific implementation of toArray.
|
add, addAll, contains, removeAll, retainAlladdAll, addAll, parallelPrimitiveStream, pour, primitiveStream, spliterator, synchronize, synchronize, unmodifiablearrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic boolean add(short o)
ShortCollectiono - the element that should be addedpublic boolean addAll(ShortCollection c)
ShortCollectionaddAll in interface ShortCollectionaddAll in class AbstractShortCollectionc - the collection of elements that should be addedpublic boolean addAll(short[] e,
int offset,
int length)
ShortCollectione - the elements that should be addedoffset - where to start within the arraylength - how many elements of the array should be addedpublic boolean contains(short o)
AbstractShortCollectioncontains in interface ShortCollectioncontains in class AbstractShortCollectiono - the element that should be searched for.public boolean containsAll(ShortCollection c)
AbstractShortCollectioncontainsAll in interface ShortCollectioncontainsAll in class AbstractShortCollectionc - the collection that should be checked if it contains all elements.public boolean containsAny(ShortCollection c)
AbstractShortCollectioncontainsAny in interface ShortCollectioncontainsAny in class AbstractShortCollectionc - the elements that should be checked for@Deprecated public boolean containsAny(java.util.Collection<?> c)
AbstractShortCollectioncontainsAny in interface ShortCollectioncontainsAny in class AbstractShortCollectionc - the elements that should be checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Short>containsAll in class AbstractShortCollectionpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Short>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Short>equals in class java.lang.Object@Deprecated public boolean remove(java.lang.Object o)
AbstractShortCollectionThis 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 AbstractShortCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Short>removeAll in class java.util.AbstractCollection<java.lang.Short>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Short>retainAll in class java.util.AbstractCollection<java.lang.Short>@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Short> filter)
ShortCollectionThis default implementation delegates to the corresponding type-specific function.
public boolean remShort(short o)
AbstractShortCollectionremShort in interface ShortCollectionremShort in class AbstractShortCollectiono - the element that is searched forCollection.remove(Object)public boolean removeAll(ShortCollection c)
AbstractShortCollectionremoveAll in interface ShortCollectionremoveAll in class AbstractShortCollectionc - the elements that should be deletedCollection.removeAll(Collection)public boolean retainAll(ShortCollection c)
AbstractShortCollectionretainAll in interface ShortCollectionretainAll in class AbstractShortCollectionc - the elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.IntPredicate filter)
ShortCollectionRemoves elements that were selected by the filter
filter - Filters the elements that should be removedCollection.removeIf(Predicate)public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Short>toArray in class java.util.AbstractCollection<java.lang.Short>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Short>toArray in class java.util.AbstractCollection<java.lang.Short>public short[] toShortArray()
AbstractShortCollectionAbstractShortCollection.toShortArray(short[]) with a newly created array.toShortArray in interface ShortCollectiontoShortArray in class AbstractShortCollectionCollection.toArray()public short[] toShortArray(short[] a)
AbstractShortCollectiontoShortArray in interface ShortCollectiontoShortArray in class AbstractShortCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])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 ShortIterableiterator in class AbstractShortCollectionCollection.iterator()public void clear()
clear in interface java.util.Collection<java.lang.Short>clear in class java.util.AbstractCollection<java.lang.Short>public int size()
size in interface java.util.Collection<java.lang.Short>size in class java.util.AbstractCollection<java.lang.Short>public ShortCollections.EmptyCollection copy()
ShortCollectioncopy in interface ShortCollectioncopy in class AbstractShortCollection