public interface ImmutableLongSet extends ImmutableLongCollection, LongSet
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableSet<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 ImmutableLongSet |
difference(LongSet set)
Returns the set of all members of
this that are not members of set. |
default ImmutableLongSet |
intersect(LongSet set)
Returns the set of all objects that are members of both
this and set. |
ImmutableLongSet |
newWith(long element) |
ImmutableLongSet |
newWithAll(LongIterable elements) |
ImmutableLongSet |
newWithout(long element) |
ImmutableLongSet |
newWithoutAll(LongIterable elements) |
ImmutableLongSet |
reject(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
ImmutableLongSet |
select(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
default ImmutableLongSet |
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 ImmutableLongSet |
tap(LongProcedure procedure) |
default ImmutableLongSet |
union(LongSet set) |
cartesianProduct, equals, freeze, hashCode, isProperSubsetOf, isSubsetOf, toImmutableallSatisfy, 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, longIterator, 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, toStringImmutableLongSet select(LongPredicate predicate)
LongIterableselect in interface ImmutableLongCollectionselect in interface LongIterableselect in interface LongSetImmutableLongSet reject(LongPredicate predicate)
LongIterablereject in interface ImmutableLongCollectionreject in interface LongIterablereject in interface LongSetdefault ImmutableLongSet tap(LongProcedure procedure)
tap in interface ImmutableLongCollectiontap in interface LongIterabletap in interface LongSet<V> ImmutableSet<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface ImmutableLongCollectioncollect in interface LongIterablecollect in interface LongSetdefault ImmutableLongSet union(LongSet set)
default ImmutableLongSet intersect(LongSet set)
this and set. The intersection of
[1, 2, 3] and [2, 3, 4] is the set [2, 3].default ImmutableLongSet 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 ImmutableLongSet 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 LongSetImmutableLongSet newWith(long element)
newWith in interface ImmutableLongCollectionImmutableLongSet newWithout(long element)
newWithout in interface ImmutableLongCollectionImmutableLongSet newWithAll(LongIterable elements)
newWithAll in interface ImmutableLongCollectionImmutableLongSet newWithoutAll(LongIterable elements)
newWithoutAll in interface ImmutableLongCollectionCopyright © 2004–2023. All rights reserved.