public static class LongCollections.EmptyCollection extends AbstractLongCollection
ISizeProvider.CollectionSize| Constructor and Description |
|---|
EmptyCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(long[] e,
int offset,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
boolean |
addAll(LongCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(long o)
A Type-Specific implementation of contains.
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAll(LongCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(LongCollection c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection.
|
LongCollections.EmptyCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
LongIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remIf(java.util.function.LongPredicate filter)
A Type-Specific removeIf function to reduce (un)boxing.
|
boolean |
remLong(long o)
A Type-Specific implementation of remove.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
removeAll(LongCollection c)
A Type-Specific implementation of removeAll.
|
boolean |
removeIf(java.util.function.Predicate<? super java.lang.Long> filter)
Deprecated.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(LongCollection c)
A Type-Specific implementation of retainAll.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
long[] |
toLongArray()
A Type-Specific implementation of toArray that links to
AbstractLongCollection.toLongArray(long[]) with a newly created array. |
long[] |
toLongArray(long[] 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, forEachIndexed, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedofpublic boolean add(long o)
LongCollectiono - the element that should be addedpublic boolean addAll(LongCollection c)
LongCollectionaddAll in interface LongCollectionaddAll in class AbstractLongCollectionc - the collection of elements that should be addedpublic boolean addAll(long[] e,
int offset,
int length)
LongCollectione - the elements that should be addedoffset - where to start within the arraylength - how many elements of the array should be addedpublic boolean contains(long o)
AbstractLongCollectioncontains in interface LongCollectioncontains in class AbstractLongCollectiono - the element that should be searched for.public boolean containsAll(LongCollection c)
AbstractLongCollectioncontainsAll in interface LongCollectioncontainsAll in class AbstractLongCollectionc - the collection that should be checked if it contains all elements.public boolean containsAny(LongCollection c)
AbstractLongCollectioncontainsAny in interface LongCollectioncontainsAny in class AbstractLongCollectionc - the elements that should be checked for@Deprecated public boolean containsAny(java.util.Collection<?> c)
AbstractLongCollectioncontainsAny in interface LongCollectioncontainsAny in class AbstractLongCollectionc - the elements that should be checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Long>containsAll in class AbstractLongCollectionpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Long>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Long>equals in class java.lang.Object@Deprecated public boolean remove(java.lang.Object o)
AbstractLongCollectionThis 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.Long>remove in interface LongCollectionremove in class AbstractLongCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Long>removeAll in class java.util.AbstractCollection<java.lang.Long>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Long>retainAll in class java.util.AbstractCollection<java.lang.Long>@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Long> filter)
LongCollectionThis default implementation delegates to the corresponding type-specific function.
public boolean remLong(long o)
AbstractLongCollectionremLong in interface LongCollectionremLong in class AbstractLongCollectiono - the element that is searched forCollection.remove(Object)public boolean removeAll(LongCollection c)
AbstractLongCollectionremoveAll in interface LongCollectionremoveAll in class AbstractLongCollectionc - the elements that should be deletedCollection.removeAll(Collection)public boolean retainAll(LongCollection c)
AbstractLongCollectionretainAll in interface LongCollectionretainAll in class AbstractLongCollectionc - the elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.LongPredicate filter)
LongCollectionRemoves 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.Long>toArray in class java.util.AbstractCollection<java.lang.Long>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Long>toArray in class java.util.AbstractCollection<java.lang.Long>public long[] toLongArray()
AbstractLongCollectionAbstractLongCollection.toLongArray(long[]) with a newly created array.toLongArray in interface LongCollectiontoLongArray in interface LongIterabletoLongArray in class AbstractLongCollectionCollection.toArray()public long[] toLongArray(long[] a)
AbstractLongCollectiontoLongArray in interface LongCollectiontoLongArray in class AbstractLongCollectiona - 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 LongIterator iterator()
LongCollectioniterator in interface java.lang.Iterable<java.lang.Long>iterator in interface java.util.Collection<java.lang.Long>iterator in interface LongCollectioniterator in interface LongIterableiterator in class AbstractLongCollectionCollection.iterator()public void clear()
clear in interface java.util.Collection<java.lang.Long>clear in class java.util.AbstractCollection<java.lang.Long>public int size()
size in interface java.util.Collection<java.lang.Long>size in interface ISizeProvidersize in class java.util.AbstractCollection<java.lang.Long>public LongCollections.EmptyCollection copy()
LongCollectioncopy in interface LongCollectioncopy in class AbstractLongCollection