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
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
Modifier and Type Method Description RichIterable<IntIterable>chunk(int size)Partitions elements in fixed size chunks.IntSetfreeze()Returns a frozen copy of this set.ImmutableIntSetnewWith(int element)ImmutableIntSetnewWithAll(IntIterable elements)ImmutableIntSetnewWithout(int element)ImmutableIntSetnewWithoutAll(IntIterable elements)ImmutableIntSettoImmutable()Returns an immutable copy of this set.Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractIntSet
equals, hashCodeMethods inherited from class org.eclipse.collections.impl.primitive.AbstractIntIterable
asLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface org.eclipse.collections.api.set.primitive.ImmutableIntSet
collect, reject, select, tapMethods 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, 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, toSortedListMethods inherited from interface org.eclipse.collections.api.set.primitive.IntSet
collect, equals, hashCode, reject, select, tapMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
AbstractImmutableIntSet
public AbstractImmutableIntSet()
-
-
Method Details
-
newWith
- Specified by:
newWithin interfaceImmutableIntCollection- Specified by:
newWithin interfaceImmutableIntSet
-
newWithout
- Specified by:
newWithoutin interfaceImmutableIntCollection- Specified by:
newWithoutin interfaceImmutableIntSet
-
newWithAll
- Specified by:
newWithAllin interfaceImmutableIntCollection- Specified by:
newWithAllin interfaceImmutableIntSet
-
newWithoutAll
- Specified by:
newWithoutAllin interfaceImmutableIntCollection- Specified by:
newWithoutAllin interfaceImmutableIntSet
-
freeze
Description copied from interface:IntSetReturns 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
Description copied from interface:IntSetReturns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutablein interfaceIntSet
-
chunk
Description copied from interface:IntIterablePartitions elements in fixed size chunks.- Specified by:
chunkin interfaceIntIterable- Parameters:
size- the number of elements per chunk- Returns:
- A
RichIterablecontainingIntIterables of sizesize, except the last will be truncated if the elements don't divide evenly.
-