Package org.apache.logging.log4j.util
Class ServiceLoaderUtil.ServiceLoaderSpliterator<S>
java.lang.Object
org.apache.logging.log4j.util.ServiceLoaderUtil.ServiceLoaderSpliterator<S>
- All Implemented Interfaces:
Spliterator<S>
- Enclosing class:
- ServiceLoaderUtil
private static class ServiceLoaderUtil.ServiceLoaderSpliterator<S>
extends Object
implements Spliterator<S>
-
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
FieldsFields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorsConstructorDescriptionServiceLoaderSpliterator
(Class<S> serviceType, MethodHandles.Lookup lookup, ClassLoader classLoader, boolean verbose) -
Method Summary
Modifier and TypeMethodDescriptionint
long
boolean
tryAdvance
(Consumer<? super S> action) 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
-
Field Details
-
serviceIterator
-
logger
-
serviceName
-
-
Constructor Details
-
ServiceLoaderSpliterator
public ServiceLoaderSpliterator(Class<S> serviceType, MethodHandles.Lookup lookup, ClassLoader classLoader, boolean verbose)
-
-
Method Details
-
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator<S>
-
trySplit
- Specified by:
trySplit
in interfaceSpliterator<S>
-
estimateSize
public long estimateSize()- Specified by:
estimateSize
in interfaceSpliterator<S>
-
characteristics
public int characteristics()- Specified by:
characteristics
in interfaceSpliterator<S>
-