Interface MutableIntSet
- All Superinterfaces:
IntIterable
,IntSet
,MutableIntCollection
,PrimitiveIterable
- All Known Implementing Classes:
AbstractMutableIntKeySet
,IntHashSet
,SynchronizedIntSet
,UnmodifiableIntSet
public interface MutableIntSet extends MutableIntCollection, IntSet
This file was automatically generated from template file mutablePrimitiveSet.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and Type Method 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
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.MutableIntSet
with(int element)
MutableIntSet
withAll(IntIterable elements)
MutableIntSet
without(int element)
MutableIntSet
withoutAll(IntIterable elements)
Methods inherited from interface org.eclipse.collections.api.IntIterable
allSatisfy, 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, toSortedList
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableIntCollection
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Method Details
-
select
Description copied from interface:IntIterable
Returns a new IntIterable with all of the elements in the IntIterable that return true for the specified predicate.- Specified by:
select
in interfaceIntIterable
- Specified by:
select
in interfaceIntSet
- Specified by:
select
in interfaceMutableIntCollection
-
reject
Description copied from interface:IntIterable
Returns a new IntIterable with all of the elements in the IntIterable that return false for the specified predicate.- Specified by:
reject
in interfaceIntIterable
- Specified by:
reject
in interfaceIntSet
- Specified by:
reject
in interfaceMutableIntCollection
-
tap
- Specified by:
tap
in interfaceIntIterable
- Specified by:
tap
in interfaceIntSet
- Specified by:
tap
in interfaceMutableIntCollection
- Since:
- 9.0.
-
collect
Description copied from interface:IntIterable
Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collect
in interfaceIntIterable
- Specified by:
collect
in interfaceIntSet
- Specified by:
collect
in interfaceMutableIntCollection
-
with
- Specified by:
with
in interfaceMutableIntCollection
-
without
- Specified by:
without
in interfaceMutableIntCollection
-
withAll
- Specified by:
withAll
in interfaceMutableIntCollection
-
withoutAll
- Specified by:
withoutAll
in interfaceMutableIntCollection
-
asUnmodifiable
MutableIntSet asUnmodifiable()- Specified by:
asUnmodifiable
in interfaceMutableIntCollection
-
asSynchronized
MutableIntSet asSynchronized()- Specified by:
asSynchronized
in interfaceMutableIntCollection
-
freeze
IntSet freeze()Returns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees. -
toImmutable
ImmutableIntSet toImmutable()Returns an immutable copy of this set.- Specified by:
toImmutable
in interfaceIntSet
- Specified by:
toImmutable
in interfaceMutableIntCollection
-
newEmpty
Creates a new empty mutable version of the same Set type.- Specified by:
newEmpty
in interfaceMutableIntCollection
- Since:
- 9.2.
-