public interface ImmutableIntSet extends ImmutableIntCollection, IntSet
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableSet<V> |
collect(IntToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default ImmutableIntSet |
difference(IntSet set)
Returns the set of all members of
this that are not members of set. |
default ImmutableIntSet |
intersect(IntSet set)
Returns the set of all objects that are members of both
this and set. |
ImmutableIntSet |
newWith(int element) |
ImmutableIntSet |
newWithAll(IntIterable elements) |
ImmutableIntSet |
newWithout(int element) |
ImmutableIntSet |
newWithoutAll(IntIterable elements) |
ImmutableIntSet |
reject(IntPredicate predicate)
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
ImmutableIntSet |
select(IntPredicate predicate)
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
default ImmutableIntSet |
symmetricDifference(IntSet 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 ImmutableIntSet |
tap(IntProcedure procedure) |
default ImmutableIntSet |
union(IntSet 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, intIterator, 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, toStringImmutableIntSet select(IntPredicate predicate)
IntIterableselect in interface ImmutableIntCollectionselect in interface IntIterableselect in interface IntSetImmutableIntSet reject(IntPredicate predicate)
IntIterablereject in interface ImmutableIntCollectionreject in interface IntIterablereject in interface IntSetdefault ImmutableIntSet tap(IntProcedure procedure)
tap in interface ImmutableIntCollectiontap in interface IntIterabletap in interface IntSet<V> ImmutableSet<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface ImmutableIntCollectioncollect in interface IntIterablecollect in interface IntSetdefault ImmutableIntSet union(IntSet set)
default ImmutableIntSet intersect(IntSet set)
this and set. The intersection of
[1, 2, 3] and [2, 3, 4] is the set [2, 3].default ImmutableIntSet difference(IntSet set)
this that are not members of set. The difference of
[1, 2, 3] and [2, 3, 4] is [1].difference in interface IntSetdefault ImmutableIntSet symmetricDifference(IntSet 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 IntSetImmutableIntSet newWith(int element)
newWith in interface ImmutableIntCollectionImmutableIntSet newWithout(int element)
newWithout in interface ImmutableIntCollectionImmutableIntSet newWithAll(IntIterable elements)
newWithAll in interface ImmutableIntCollectionImmutableIntSet newWithoutAll(IntIterable elements)
newWithoutAll in interface ImmutableIntCollectionCopyright © 2004–2021. All rights reserved.