Class AbstractImmutableShortSet
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractShortIterable
org.eclipse.collections.impl.set.primitive.AbstractShortSet
org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableShortSet
- All Implemented Interfaces:
ImmutableShortCollection
,PrimitiveIterable
,ImmutableShortSet
,ShortSet
,ShortIterable
public abstract class AbstractImmutableShortSet extends AbstractShortSet implements ImmutableShortSet
This file was automatically generated from template file abstractImmutablePrimitiveSet.stg.
- Since:
- 6.0.
-
Constructor Summary
Constructors Constructor Description AbstractImmutableShortSet()
-
Method Summary
Modifier and Type Method Description RichIterable<ShortIterable>
chunk(int size)
Partitions elements in fixed size chunks.ShortSet
freeze()
Returns a frozen copy of this set.ImmutableShortSet
newWith(short element)
ImmutableShortSet
newWithAll(ShortIterable elements)
ImmutableShortSet
newWithout(short element)
ImmutableShortSet
newWithoutAll(ShortIterable elements)
ImmutableShortSet
toImmutable()
Returns an immutable copy of this set.Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractShortSet
equals, hashCode
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractShortIterable
asLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
Methods inherited from interface org.eclipse.collections.api.set.primitive.ImmutableShortSet
collect, reject, select, tap
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
Methods inherited from interface org.eclipse.collections.api.ShortIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, 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, shortIterator, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList
-
Constructor Details
-
AbstractImmutableShortSet
public AbstractImmutableShortSet()
-
-
Method Details
-
newWith
- Specified by:
newWith
in interfaceImmutableShortCollection
- Specified by:
newWith
in interfaceImmutableShortSet
-
newWithout
- Specified by:
newWithout
in interfaceImmutableShortCollection
- Specified by:
newWithout
in interfaceImmutableShortSet
-
newWithAll
- Specified by:
newWithAll
in interfaceImmutableShortCollection
- Specified by:
newWithAll
in interfaceImmutableShortSet
-
newWithoutAll
- Specified by:
newWithoutAll
in interfaceImmutableShortCollection
- Specified by:
newWithoutAll
in interfaceImmutableShortSet
-
freeze
Description copied from interface:ShortSet
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
Description copied from interface:ShortSet
Returns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutable
in interfaceShortSet
-
chunk
Description copied from interface:ShortIterable
Partitions elements in fixed size chunks.- Specified by:
chunk
in interfaceShortIterable
- Parameters:
size
- the number of elements per chunk- Returns:
- A
RichIterable
containingShortIterable
s of sizesize
, except the last will be truncated if the elements don't divide evenly.
-