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.
|
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 |
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, retainAllallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, 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, 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].Copyright © 2004–2020. All rights reserved.