public interface MutableLongSet extends MutableLongCollection, LongSet
| Modifier and Type | Method and Description |
|---|---|
MutableLongSet |
asSynchronized() |
MutableLongSet |
asUnmodifiable() |
<V> MutableSet<V> |
collect(LongToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default MutableLongSet |
difference(LongSet set)
Returns the set of all members of
this that are not members of set. |
LongSet |
freeze()
Returns a frozen copy of this set.
|
default MutableLongSet |
intersect(LongSet set)
Returns the set of all objects that are members of both
this and set. |
default MutableLongSet |
newEmpty()
Creates a new empty mutable version of the same Set type.
|
MutableLongSet |
reject(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
MutableLongSet |
select(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
default MutableLongSet |
symmetricDifference(LongSet set)
Returns the set of all objects that are a member of exactly one of
this and set (elements which
are in one of the sets, but not in both). |
default MutableLongSet |
tap(LongProcedure procedure) |
ImmutableLongSet |
toImmutable()
Returns an immutable copy of this set.
|
default MutableLongSet |
union(LongSet set) |
MutableLongSet |
with(long element) |
MutableLongSet |
withAll(LongIterable elements) |
MutableLongSet |
without(long element) |
MutableLongSet |
withoutAll(LongIterable elements) |
add, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllcartesianProduct, equals, hashCode, isProperSubsetOf, isSubsetOfallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringMutableLongSet select(LongPredicate predicate)
LongIterableselect in interface LongIterableselect in interface LongSetselect in interface MutableLongCollectionMutableLongSet reject(LongPredicate predicate)
LongIterablereject in interface LongIterablereject in interface LongSetreject in interface MutableLongCollectiondefault MutableLongSet tap(LongProcedure procedure)
tap in interface LongIterabletap in interface LongSettap in interface MutableLongCollection<V> MutableSet<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterablecollect in interface LongSetcollect in interface MutableLongCollectionMutableLongSet with(long element)
with in interface MutableLongCollectionMutableLongSet without(long element)
without in interface MutableLongCollectionMutableLongSet withAll(LongIterable elements)
withAll in interface MutableLongCollectionMutableLongSet withoutAll(LongIterable elements)
withoutAll in interface MutableLongCollectionMutableLongSet asUnmodifiable()
asUnmodifiable in interface MutableLongCollectionMutableLongSet asSynchronized()
asSynchronized in interface MutableLongCollectionLongSet freeze()
ImmutableLongSet toImmutable()
toImmutable in interface LongSettoImmutable in interface MutableLongCollectiondefault MutableLongSet newEmpty()
newEmpty in interface MutableLongCollectiondefault MutableLongSet union(LongSet set)
default MutableLongSet intersect(LongSet set)
this and set. The intersection of
[1, 2, 3] and [2, 3, 4] is the set [2, 3].default MutableLongSet difference(LongSet set)
this that are not members of set. The difference of
[1, 2, 3] and [2, 3, 4] is [1].difference in interface LongSetdefault MutableLongSet symmetricDifference(LongSet set)
this and set (elements which
are in one of the sets, but not in both). For instance, for the sets [1, 2, 3] and [2, 3, 4], the symmetric
difference set is [1, 4] . It is the set difference of the union and the intersection.symmetricDifference in interface LongSetCopyright © 2004–2022. All rights reserved.