public interface MutableIntSet extends MutableIntCollection, IntSet
| Modifier and Type | Method and Description |
|---|---|
MutableIntSet |
asSynchronized() |
MutableIntSet |
asUnmodifiable() |
<V> MutableSet<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 MutableIntSet |
difference(IntSet set)
Returns the set of all members of
this that are not members of set. |
IntSet |
freeze()
Returns a frozen copy of this set.
|
default MutableIntSet |
intersect(IntSet set)
Returns the set of all objects that are members of both
this and set. |
default MutableIntSet |
newEmpty()
Creates a new empty mutable version of the same Set type.
|
MutableIntSet |
reject(IntPredicate predicate)
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
MutableIntSet |
select(IntPredicate predicate)
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
default MutableIntSet |
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 MutableIntSet |
tap(IntProcedure procedure) |
ImmutableIntSet |
toImmutable()
Returns an immutable copy of this set.
|
default MutableIntSet |
union(IntSet set) |
MutableIntSet |
with(int element) |
MutableIntSet |
withAll(IntIterable elements) |
MutableIntSet |
without(int element) |
MutableIntSet |
withoutAll(IntIterable elements) |
add, addAll, addAll, clear, intIterator, 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, toStringMutableIntSet select(IntPredicate predicate)
IntIterableselect in interface IntIterableselect in interface IntSetselect in interface MutableIntCollectionMutableIntSet reject(IntPredicate predicate)
IntIterablereject in interface IntIterablereject in interface IntSetreject in interface MutableIntCollectiondefault MutableIntSet tap(IntProcedure procedure)
tap in interface IntIterabletap in interface IntSettap in interface MutableIntCollection<V> MutableSet<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface IntIterablecollect in interface IntSetcollect in interface MutableIntCollectionMutableIntSet with(int element)
with in interface MutableIntCollectionMutableIntSet without(int element)
without in interface MutableIntCollectionMutableIntSet withAll(IntIterable elements)
withAll in interface MutableIntCollectionMutableIntSet withoutAll(IntIterable elements)
withoutAll in interface MutableIntCollectionMutableIntSet asUnmodifiable()
asUnmodifiable in interface MutableIntCollectionMutableIntSet asSynchronized()
asSynchronized in interface MutableIntCollectionIntSet freeze()
ImmutableIntSet toImmutable()
toImmutable in interface IntSettoImmutable in interface MutableIntCollectiondefault MutableIntSet newEmpty()
newEmpty in interface MutableIntCollectiondefault MutableIntSet union(IntSet set)
default MutableIntSet intersect(IntSet set)
this and set. The intersection of
[1, 2, 3] and [2, 3, 4] is the set [2, 3].default MutableIntSet 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 MutableIntSet 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 IntSetCopyright © 2004–2022. All rights reserved.