Class AbstractImmutableIntSet
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractIntIterable
-
- org.eclipse.collections.impl.set.primitive.AbstractIntSet
-
- org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableIntSet
-
- All Implemented Interfaces:
ImmutableIntCollection
,IntIterable
,PrimitiveIterable
,ImmutableIntSet
,IntSet
- Direct Known Subclasses:
ImmutableIntIntMapKeySet
,ImmutableIntMapKeySet
,IntHashSet.ImmutableIntHashSet
public abstract class AbstractImmutableIntSet extends AbstractIntSet implements ImmutableIntSet
This file was automatically generated from template file abstractImmutablePrimitiveSet.stg.- Since:
- 6.0.
-
-
Constructor Summary
Constructors Constructor Description AbstractImmutableIntSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RichIterable<IntIterable>
chunk(int size)
Partitions elements in fixed size chunks.IntSet
freeze()
Returns a frozen copy of this set.ImmutableIntSet
newWith(int element)
ImmutableIntSet
newWithAll(IntIterable elements)
ImmutableIntSet
newWithout(int element)
ImmutableIntSet
newWithoutAll(IntIterable elements)
ImmutableIntSet
toImmutable()
Returns an immutable copy of this set.-
Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractIntSet
cartesianProduct, equals, hashCode
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractIntIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.ImmutableIntSet
collect, difference, intersect, reject, select, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.IntIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, 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, intIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.IntSet
cartesianProduct, collect, equals, hashCode, isProperSubsetOf, isSubsetOf, reject, select, tap
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Method Detail
-
newWith
public ImmutableIntSet newWith(int element)
- Specified by:
newWith
in interfaceImmutableIntCollection
- Specified by:
newWith
in interfaceImmutableIntSet
-
newWithout
public ImmutableIntSet newWithout(int element)
- Specified by:
newWithout
in interfaceImmutableIntCollection
- Specified by:
newWithout
in interfaceImmutableIntSet
-
newWithAll
public ImmutableIntSet newWithAll(IntIterable elements)
- Specified by:
newWithAll
in interfaceImmutableIntCollection
- Specified by:
newWithAll
in interfaceImmutableIntSet
-
newWithoutAll
public ImmutableIntSet newWithoutAll(IntIterable elements)
- Specified by:
newWithoutAll
in interfaceImmutableIntCollection
- Specified by:
newWithoutAll
in interfaceImmutableIntSet
-
freeze
public IntSet freeze()
Description copied from interface:IntSet
Returns a frozen copy of this set. If the set is frozen, it returns itself. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.
-
toImmutable
public ImmutableIntSet toImmutable()
Description copied from interface:IntSet
Returns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutable
in interfaceIntSet
-
chunk
public RichIterable<IntIterable> chunk(int size)
Description copied from interface:IntIterable
Partitions elements in fixed size chunks.- Specified by:
chunk
in interfaceIntIterable
- Parameters:
size
- the number of elements per chunk- Returns:
- A
RichIterable
containingIntIterable
s of sizesize
, except the last will be truncated if the elements don't divide evenly.
-
-