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
- Direct Known Subclasses:
ImmutableShortMapKeySet, ImmutableShortShortMapKeySet, ShortHashSet.ImmutableShortHashSet
public abstract class AbstractImmutableShortSet
extends AbstractShortSet
implements ImmutableShortSet
This file was automatically generated from template file abstractImmutablePrimitiveSet.stg.
- Since:
- 6.0.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchunk(int size) Partitions elements in fixed size chunks.freeze()Returns a frozen copy of this set.newWith(short element) newWithAll(ShortIterable elements) newWithout(short element) newWithoutAll(ShortIterable elements) Returns an immutable copy of this set.Methods inherited from class AbstractShortSet
cartesianProduct, equals, hashCodeMethods inherited from class AbstractShortIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface ImmutableShortSet
collect, difference, intersect, reject, select, symmetricDifference, tap, unionMethods inherited from interface PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringMethods inherited from interface ShortIterable
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, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, shortIterator, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface ShortSet
cartesianProduct, collect, equals, hashCode, isProperSubsetOf, isSubsetOf, reject, select, tap
-
Constructor Details
-
AbstractImmutableShortSet
public AbstractImmutableShortSet()
-
-
Method Details
-
newWith
- Specified by:
newWithin interfaceImmutableShortCollection- Specified by:
newWithin interfaceImmutableShortSet
-
newWithout
- Specified by:
newWithoutin interfaceImmutableShortCollection- Specified by:
newWithoutin interfaceImmutableShortSet
-
newWithAll
- Specified by:
newWithAllin interfaceImmutableShortCollection- Specified by:
newWithAllin interfaceImmutableShortSet
-
newWithoutAll
- Specified by:
newWithoutAllin interfaceImmutableShortCollection- Specified by:
newWithoutAllin interfaceImmutableShortSet
-
freeze
-
toImmutable
Description copied from interface:ShortSetReturns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutablein interfaceShortSet
-
chunk
Description copied from interface:ShortIterablePartitions elements in fixed size chunks.- Specified by:
chunkin interfaceShortIterable- Parameters:
size- the number of elements per chunk- Returns:
- A
RichIterablecontainingShortIterables of sizesize, except the last will be truncated if the elements don't divide evenly.
-