Class LongSingletonSpliterator
java.lang.Object
org.eclipse.collections.impl.stream.primitive.LongSingletonSpliterator
- All Implemented Interfaces:
Spliterator<Long>
,Spliterator.OfLong
,Spliterator.OfPrimitive<Long,LongConsumer,Spliterator.OfLong>
public final class LongSingletonSpliterator extends Object implements Spliterator.OfLong
LongSingletonSpliterator is a specialized spliterator of type long.
This file was automatically generated from template file primitiveSingletonSpliterator.stg.
- Since:
- 10.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T extends Object,T_CONS extends Object,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
-
Field Summary
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
Constructors Constructor Description LongSingletonSpliterator(long elem)
-
Method Summary
Modifier and Type Method Description int
characteristics()
long
estimateSize()
boolean
tryAdvance(LongConsumer action)
Spliterator.OfLong
trySplit()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
Methods inherited from interface java.util.Spliterator.OfLong
forEachRemaining, forEachRemaining, tryAdvance
-
Constructor Details
-
LongSingletonSpliterator
public LongSingletonSpliterator(long elem)
-
-
Method Details
-
trySplit
- Specified by:
trySplit
in interfaceSpliterator<Long>
- Specified by:
trySplit
in interfaceSpliterator.OfLong
- Specified by:
trySplit
in interfaceSpliterator.OfPrimitive<Long,LongConsumer,Spliterator.OfLong>
-
estimateSize
public long estimateSize()- Specified by:
estimateSize
in interfaceSpliterator<Long>
-
characteristics
public int characteristics()- Specified by:
characteristics
in interfaceSpliterator<Long>
-
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator.OfLong
- Specified by:
tryAdvance
in interfaceSpliterator.OfPrimitive<Long,LongConsumer,Spliterator.OfLong>
-