public abstract class AbstractLongCollection extends java.util.AbstractCollection<java.lang.Long> implements LongCollection
| Constructor and Description |
|---|
AbstractLongCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Long e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Long> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(LongCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
boolean |
contains(long e)
A Type-Specific implementation of contains.
|
boolean |
contains(java.lang.Object e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
containsAll(java.util.Collection<?> c) |
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.
|
LongCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
abstract LongIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remLong(long e)
A Type-Specific implementation of remove.
|
boolean |
remove(java.lang.Object e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
removeAll(LongCollection c)
A Type-Specific implementation of removeAll.
|
boolean |
removeAll(LongCollection c,
LongConsumer r)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
retainAll(LongCollection c)
A Type-Specific implementation of retainAll.
|
boolean |
retainAll(LongCollection c,
LongConsumer r)
A Type-Specific retainAll function that reduces (un)boxing.
|
long[] |
toLongArray()
A Type-Specific implementation of toArray that links to
toLongArray(long[]) with a newly created array. |
long[] |
toLongArray(long[] 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 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 java.util.AbstractCollection<java.lang.Long>Collection.iterator()@Deprecated public boolean add(java.lang.Long 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.Long>add in interface LongCollectionadd in class java.util.AbstractCollection<java.lang.Long>public boolean addAll(LongCollection c)
LongCollectionaddAll in interface LongCollectionc - the collection of elements that should be addedpublic LongCollection copy()
LongCollectioncopy in interface LongCollection@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.Long>contains in interface LongCollectioncontains in class java.util.AbstractCollection<java.lang.Long>public boolean contains(long e)
contains in interface LongCollectione - the element that should be searched for.@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Long> c)
This default implementation delegates to the corresponding type-specific function.
addAll in interface java.util.Collection<java.lang.Long>addAll in class java.util.AbstractCollection<java.lang.Long>public boolean containsAll(LongCollection c)
containsAll in interface LongCollectionc - 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.Long>containsAll in class java.util.AbstractCollection<java.lang.Long>@Deprecated public boolean containsAny(java.util.Collection<?> c)
containsAny in interface LongCollectionc - the elements that should be checked forjava.lang.NullPointerException - if the collection is nullpublic boolean containsAny(LongCollection c)
containsAny in interface LongCollectionc - 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.Long>remove in interface LongCollectionremove in class java.util.AbstractCollection<java.lang.Long>public boolean remLong(long e)
remLong in interface LongCollectione - the element that is searched forCollection.remove(Object)public boolean removeAll(LongCollection c)
removeAll in interface LongCollectionc - the elements that should be deletedjava.lang.NullPointerException - if the collection is nullCollection.removeAll(Collection)public boolean removeAll(LongCollection c, LongConsumer r)
LongCollectionremoveAll in interface LongCollectionc - the collection of elements that should be removedr - elements that got removedCollection.removeAll(Collection)public boolean retainAll(LongCollection c)
retainAll in interface LongCollectionc - the elements that should be keptjava.lang.NullPointerException - if the collection is nullCollection.retainAll(Collection)public boolean retainAll(LongCollection c, LongConsumer r)
LongCollectionretainAll in interface LongCollectionc - the collection of elements that should be keptr - elements that got removedCollection.retainAll(Collection)public long[] toLongArray()
toLongArray(long[]) with a newly created array.toLongArray in interface LongCollectionCollection.toArray()public long[] toLongArray(long[] a)
toLongArray in interface LongCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])