Class AbstractImmutableLongSet
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractLongIterable
org.eclipse.collections.impl.set.primitive.AbstractLongSet
org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableLongSet
- All Implemented Interfaces:
ImmutableLongCollection,LongIterable,PrimitiveIterable,ImmutableLongSet,LongSet
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(long element) newWithAll(LongIterable elements) newWithout(long element) newWithoutAll(LongIterable elements) Returns an immutable copy of this set.Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractLongSet
cartesianProduct, equals, hashCodeMethods inherited from class org.eclipse.collections.impl.primitive.AbstractLongIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface org.eclipse.collections.api.set.primitive.ImmutableLongSet
collect, difference, intersect, reject, select, symmetricDifference, tap, unionMethods inherited from interface org.eclipse.collections.api.LongIterable
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, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.set.primitive.LongSet
cartesianProduct, collect, equals, hashCode, isProperSubsetOf, isSubsetOf, reject, select, tapMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
AbstractImmutableLongSet
public AbstractImmutableLongSet()
-
-
Method Details
-
newWith
- Specified by:
newWithin interfaceImmutableLongCollection- Specified by:
newWithin interfaceImmutableLongSet
-
newWithout
- Specified by:
newWithoutin interfaceImmutableLongCollection- Specified by:
newWithoutin interfaceImmutableLongSet
-
newWithAll
- Specified by:
newWithAllin interfaceImmutableLongCollection- Specified by:
newWithAllin interfaceImmutableLongSet
-
newWithoutAll
- Specified by:
newWithoutAllin interfaceImmutableLongCollection- Specified by:
newWithoutAllin interfaceImmutableLongSet
-
freeze
Description copied from interface:LongSetReturns 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:LongSetReturns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutablein interfaceLongSet
-
chunk
Description copied from interface:LongIterablePartitions elements in fixed size chunks.- Specified by:
chunkin interfaceLongIterable- Parameters:
size- the number of elements per chunk- Returns:
- A
RichIterablecontainingLongIterables of sizesize, except the last will be truncated if the elements don't divide evenly.
-