public interface WritableLongSet extends LongCollector, LongSet
LongCollector.Dummy
DUMMY
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all of the elements from this set.
|
boolean |
exclude(long value)
Removes the specified element from this set.
|
boolean |
include(long value)
Adds the specified element to this set if it is not already present.
|
void |
remove(long value)
Removes the specified element from this set.
|
void |
removeAll(long... values)
Removes from this set all elements that are contained in
values |
void |
removeAll(LongIterable iterable)
Removes from this set all elements that are contained in the
iterable |
void |
retain(LongList values)
Removes from this set all of its elements that are not contained in the specified list.
|
add, addAll, addAll, addAll
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toNativeArray, toNativeArray
iterator
void clear()
boolean include(long value)
true
if the element was added, otherwise false
.false
if this set already contains the element.
Otherwise true
.
If return value is unused, better use LongCollector.add(long)
boolean exclude(long value)
true
if the element was removed, otherwise false
.true
if this set contained value
. Otherwise false
.
If return value is unused, better use remove(long)
void remove(long value)
void removeAll(long... values)
values
void removeAll(LongIterable iterable)
iterable
void retain(LongList values)