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