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
public abstract class AbstractImmutableLongSet extends AbstractLongSet implements ImmutableLongSet
This file was automatically generated from template file abstractImmutablePrimitiveSet.stg.
- Since:
- 6.0.
-
Constructor Summary
Constructors Constructor Description AbstractImmutableLongSet()
-
Method Summary
Modifier and Type Method Description RichIterable<LongIterable>
chunk(int size)
Partitions elements in fixed size chunks.LongSet
freeze()
Returns a frozen copy of this set.ImmutableLongSet
newWith(long element)
ImmutableLongSet
newWithAll(LongIterable elements)
ImmutableLongSet
newWithout(long element)
ImmutableLongSet
newWithoutAll(LongIterable elements)
ImmutableLongSet
toImmutable()
Returns an immutable copy of this set.Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractLongSet
equals, hashCode
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractLongIterable
asLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
Methods inherited from interface org.eclipse.collections.api.set.primitive.ImmutableLongSet
collect, reject, select, tap
Methods 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, count, detectIfNone, each, flatCollect, forEach, injectInto, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList
Methods inherited from interface org.eclipse.collections.api.set.primitive.LongSet
collect, equals, hashCode, reject, select, tap
Methods 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:
newWith
in interfaceImmutableLongCollection
- Specified by:
newWith
in interfaceImmutableLongSet
-
newWithout
- Specified by:
newWithout
in interfaceImmutableLongCollection
- Specified by:
newWithout
in interfaceImmutableLongSet
-
newWithAll
- Specified by:
newWithAll
in interfaceImmutableLongCollection
- Specified by:
newWithAll
in interfaceImmutableLongSet
-
newWithoutAll
- Specified by:
newWithoutAll
in interfaceImmutableLongCollection
- Specified by:
newWithoutAll
in interfaceImmutableLongSet
-
freeze
Description copied from interface:LongSet
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:LongSet
Returns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutable
in interfaceLongSet
-
chunk
Description copied from interface:LongIterable
Partitions elements in fixed size chunks.- Specified by:
chunk
in interfaceLongIterable
- Parameters:
size
- the number of elements per chunk- Returns:
- A
RichIterable
containingLongIterable
s of sizesize
, except the last will be truncated if the elements don't divide evenly.
-