public abstract class AbstractLongSet extends AbstractSet<Long> implements LongSet
LongSet
interface, to minimize the effort required to implement this interface.AbstractSet| Constructor and Description |
|---|
AbstractLongSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long key)
Ensures that this collection contains the specified element.
|
boolean |
add(Long o) |
boolean |
addAll(Collection<? extends Long> c)
Adds all of the elements in the specified collection to this set.
|
abstract void |
clear() |
abstract boolean |
contains(long key)
Returns true if this collection contains the specified element.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c)
Returns true if this set contains all of the elements
in the specified collection.
|
Iterator<Long> |
iterator()
Returns the same value as
longIterator() does. |
abstract LongIterator |
longIterator()
Returns an iterator over the elements in this collection.
|
abstract boolean |
remove(long key)
Removes a single instance of the specified element from this
collection, if it is present.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c)
Removes from this set all of its elements that are contained in
the specified collection.
|
boolean |
retainAll(Collection<?> c)
Retains only the elements in this set that are contained in the
specified collection.
|
abstract int |
size() |
long[] |
toLongArray()
Returns an array containing all of the elements in this collection.
|
equals, hashCodeisEmpty, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratorlongStream, parallelLongStream, spliteratorparallelStream, removeIf, streampublic abstract int size()
size in interface Collection<Long>size in interface Set<Long>size in class AbstractCollection<Long>public abstract void clear()
clear in interface Collection<Long>clear in interface Set<Long>clear in class AbstractCollection<Long>public abstract boolean contains(long key)
LongCollectioncontains in interface LongCollectionCollection.contains(Object)public abstract boolean remove(long key)
LongCollectionremove in interface LongCollectionCollection.remove(Object)public abstract LongIterator longIterator()
LongCollectionlongIterator in interface LongCollectionCollection.iterator()public final boolean containsAll(Collection<?> c)
containsAll in interface Collection<Long>containsAll in interface Set<Long>containsAll in class AbstractCollection<Long>Collection.containsAll(Collection)public final boolean addAll(Collection<? extends Long> c)
addAll in interface Collection<Long>addAll in interface Set<Long>addAll in class AbstractCollection<Long>Collection.addAll(Collection)public final boolean removeAll(Collection<?> c)
removeAll in interface Collection<Long>removeAll in interface Set<Long>removeAll in class AbstractSet<Long>Collection.removeAll(Collection)public final boolean retainAll(Collection<?> c)
retainAll in interface Collection<Long>retainAll in interface Set<Long>retainAll in class AbstractCollection<Long>Collection.retainAll(Collection)public boolean add(long key)
LongCollectionadd in interface LongCollectionCollection.add(Object)public final boolean contains(Object o)
contains in interface Collection<Long>contains in interface Set<Long>contains in class AbstractCollection<Long>public final Iterator<Long> iterator()
longIterator() does.public final boolean add(Long o)
add in interface Collection<Long>add in interface Set<Long>add in class AbstractCollection<Long>public final boolean remove(Object o)
remove in interface Collection<Long>remove in interface Set<Long>remove in class AbstractCollection<Long>public long[] toLongArray()
LongCollectiontoLongArray in interface LongCollectionCollection.toArray()Copyright © 2002–2025 Devexperts LLC. All rights reserved.