Package it.unimi.dsi.fastutil.shorts
Class ShortSpliterators.EmptySpliterator
java.lang.Object
it.unimi.dsi.fastutil.shorts.ShortSpliterators.EmptySpliterator
- All Implemented Interfaces:
ShortSpliterator
,Serializable
,Cloneable
,Spliterator<Short>
,Spliterator.OfPrimitive<Short,
ShortConsumer, ShortSpliterator>
- Enclosing class:
ShortSpliterators
public static class ShortSpliterators.EmptySpliterator
extends Object
implements ShortSpliterator, 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
(ShortConsumer action) void
forEachRemaining
(Consumer<? super Short> action) Deprecated.boolean
tryAdvance
(ShortConsumer action) boolean
tryAdvance
(Consumer<? super Short> action) Deprecated.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.shorts.ShortSpliterator
getComparator, skip
Methods inherited from interface java.util.Spliterator
getExactSizeIfKnown, hasCharacteristics
-
Method Details
-
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator.OfPrimitive<Short,
ShortConsumer, ShortSpliterator>
-
tryAdvance
Deprecated.Description copied from interface:ShortSpliterator
- Specified by:
tryAdvance
in interfaceShortSpliterator
- Specified by:
tryAdvance
in interfaceSpliterator<Short>
-
trySplit
Description copied from interface:ShortSpliterator
- Specified by:
trySplit
in interfaceShortSpliterator
- Specified by:
trySplit
in interfaceSpliterator<Short>
- Specified by:
trySplit
in interfaceSpliterator.OfPrimitive<Short,
ShortConsumer, ShortSpliterator>
-
estimateSize
public long estimateSize()- Specified by:
estimateSize
in interfaceSpliterator<Short>
-
characteristics
public int characteristics()- Specified by:
characteristics
in interfaceSpliterator<Short>
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceSpliterator.OfPrimitive<Short,
ShortConsumer, ShortSpliterator>
-
forEachRemaining
Deprecated.Description copied from interface:ShortSpliterator
- Specified by:
forEachRemaining
in interfaceShortSpliterator
- Specified by:
forEachRemaining
in interfaceSpliterator<Short>
-
clone
-