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 |
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 |
tap(LongProcedure procedure) |
default ImmutableLongSet |
union(LongSet set) |
equals, freeze, hashCode, toImmutableallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, 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].ImmutableLongSet 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–2020. All rights reserved.