Package it.unimi.dsi.fastutil.longs
Class LongSpliterators.EmptySpliterator
java.lang.Object
it.unimi.dsi.fastutil.longs.LongSpliterators.EmptySpliterator
- All Implemented Interfaces:
LongSpliterator
,Serializable
,Cloneable
,Spliterator<Long>
,Spliterator.OfLong
,Spliterator.OfPrimitive<Long,
LongConsumer, Spliterator.OfLong>
- Enclosing class:
LongSpliterators
public static class LongSpliterators.EmptySpliterator
extends Object
implements LongSpliterator, Serializable, Cloneable
A class returning no elements and a type-specific spliterator interface.
This class may be useful to implement your own in case you subclass a type-specific spliterator.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,
T_CONS, 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
-
Method Summary
Modifier and TypeMethodDescriptionint
clone()
long
void
forEachRemaining
(Consumer<? super Long> action) Deprecated.void
forEachRemaining
(LongConsumer action) boolean
tryAdvance
(Consumer<? super Long> action) Deprecated.boolean
tryAdvance
(LongConsumer action) trySplit()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongSpliterator
forEachRemaining, getComparator, skip, tryAdvance
Methods inherited from interface java.util.Spliterator
getExactSizeIfKnown, hasCharacteristics
-
Method Details
-
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator.OfLong
- Specified by:
tryAdvance
in interfaceSpliterator.OfPrimitive<Long,
LongConsumer, Spliterator.OfLong>
-
tryAdvance
Deprecated.Description copied from interface:LongSpliterator
- Specified by:
tryAdvance
in interfaceLongSpliterator
- Specified by:
tryAdvance
in interfaceSpliterator<Long>
- Specified by:
tryAdvance
in interfaceSpliterator.OfLong
-
trySplit
Description copied from interface:LongSpliterator
- Specified by:
trySplit
in interfaceLongSpliterator
- 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>
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceSpliterator.OfLong
- Specified by:
forEachRemaining
in interfaceSpliterator.OfPrimitive<Long,
LongConsumer, Spliterator.OfLong>
-
forEachRemaining
Deprecated.Description copied from interface:LongSpliterator
- Specified by:
forEachRemaining
in interfaceLongSpliterator
- Specified by:
forEachRemaining
in interfaceSpliterator<Long>
- Specified by:
forEachRemaining
in interfaceSpliterator.OfLong
-
clone
-