public static class LongCollections.SynchronizedCollection extends java.lang.Object implements LongCollection
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(java.util.Collection<? extends java.lang.Long> c) |
boolean |
addAll(LongCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(long o)
A Type-Specific contains function to reduce (un)boxing
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAll(LongCollection c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(LongCollection c)
A Type-Specific containsAny function to reduce (un)boxing
|
boolean |
isEmpty() |
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 remove function that reduces (un)boxing.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
removeAll(LongCollection c)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(LongCollection c)
A Type-Specific retainAll function that reduces (un)boxing.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
long[] |
toLongArray()
A Type-Specific toArray function that delegates to
LongCollection.toLongArray(long[]) with a newly created array. |
long[] |
toLongArray(long[] 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(long o)
LongCollectionadd in interface LongCollectiono - the element that should be addedpublic boolean addAll(java.util.Collection<? extends java.lang.Long> c)
addAll in interface java.util.Collection<java.lang.Long>public boolean addAll(LongCollection c)
LongCollectionaddAll in interface LongCollectionc - the collection of elements that should be addedpublic boolean contains(long o)
LongCollectioncontains in interface LongCollectiono - the element that is checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Long>@Deprecated public boolean containsAny(java.util.Collection<?> c)
LongCollectioncontainsAny in interface LongCollectionc - the collection of elements that should be tested forpublic boolean containsAll(LongCollection c)
LongCollectioncontainsAll in interface LongCollectionc - the collection of elements that should be tested forpublic boolean containsAny(LongCollection c)
LongCollectioncontainsAny in interface LongCollectionc - the collection of elements that should be tested forpublic int size()
size in interface java.util.Collection<java.lang.Long>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Long>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 LongIterableCollection.iterator()@Deprecated public boolean remove(java.lang.Object o)
LongCollectionThis default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Long>remove in interface LongCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Long>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Long>public boolean remLong(long o)
LongCollectionremLong in interface LongCollectiono - the element that should be removedCollection.remove(Object)public boolean removeAll(LongCollection c)
LongCollectionremoveAll in interface LongCollectionc - the collection of elements that should be removedCollection.removeAll(Collection)public boolean retainAll(LongCollection c)
LongCollectionretainAll in interface LongCollectionc - the collection of elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.LongPredicate filter)
LongCollectionRemoves elements that were selected by the filter
remIf in interface LongCollectionfilter - Filters the elements that should be removedCollection.removeIf(Predicate)public void clear()
clear in interface java.util.Collection<java.lang.Long>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Long>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Long>public long[] toLongArray()
LongCollectionLongCollection.toLongArray(long[]) with a newly created array.toLongArray in interface LongCollectionCollection.toArray()public long[] toLongArray(long[] a)
LongCollectiontoLongArray 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[])