Class EnumerationSpliterator<T>
- java.lang.Object
-
- org.bytemechanics.commons.functional.EnumerationSpliterator<T>
-
- Type Parameters:
T
- enumeration type
- All Implemented Interfaces:
Spliterator<T>
public class EnumerationSpliterator<T> extends Object implements Spliterator<T>
Enumeration spliterator ORDERED, NONNULL and IMMUTABLE utility class
-
-
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 EnumerationSpliterator(Enumeration<T> _underlayingEnumeration)
Constructor receiving the underlaying enumeration to be converted to Splitterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
characteristics()
long
estimateSize()
boolean
tryAdvance(Consumer<? super T> _action)
Spliterator<T>
trySplit()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Spliterator
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics
-
-
-
-
Constructor Detail
-
EnumerationSpliterator
public EnumerationSpliterator(Enumeration<T> _underlayingEnumeration)
Constructor receiving the underlaying enumeration to be converted to Splitterator- Parameters:
_underlayingEnumeration
- enumeration
-
-
Method Detail
-
tryAdvance
public boolean tryAdvance(Consumer<? super T> _action)
- Specified by:
tryAdvance
in interfaceSpliterator<T>
-
trySplit
public Spliterator<T> trySplit()
- Specified by:
trySplit
in interfaceSpliterator<T>
-
estimateSize
public long estimateSize()
- Specified by:
estimateSize
in interfaceSpliterator<T>
-
characteristics
public int characteristics()
- Specified by:
characteristics
in interfaceSpliterator<T>
-
-