Package net.minecraftforge.fml
Class InterModComms.QueueFilteringSpliterator
java.lang.Object
net.minecraftforge.fml.InterModComms.QueueFilteringSpliterator
- All Implemented Interfaces:
Spliterator<InterModComms.IMCMessage>
- Enclosing class:
- InterModComms
private static class InterModComms.QueueFilteringSpliterator
extends Object
implements Spliterator<InterModComms.IMCMessage>
-
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
Modifier and TypeFieldDescriptionprivate final Iterator<InterModComms.IMCMessage>
private final ConcurrentLinkedQueue<InterModComms.IMCMessage>
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorDescriptionQueueFilteringSpliterator
(ConcurrentLinkedQueue<InterModComms.IMCMessage> queue, Predicate<String> methodFilter) -
Method Summary
Modifier and TypeMethodDescriptionint
long
boolean
tryAdvance
(Consumer<? super InterModComms.IMCMessage> 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
-
queue
-
methodFilter
-
iterator
-
-
Constructor Details
-
QueueFilteringSpliterator
public QueueFilteringSpliterator(ConcurrentLinkedQueue<InterModComms.IMCMessage> queue, Predicate<String> methodFilter)
-
-
Method Details
-
characteristics
public int characteristics()- Specified by:
characteristics
in interfaceSpliterator<InterModComms.IMCMessage>
-
estimateSize
public long estimateSize()- Specified by:
estimateSize
in interfaceSpliterator<InterModComms.IMCMessage>
-
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator<InterModComms.IMCMessage>
-
trySplit
- Specified by:
trySplit
in interfaceSpliterator<InterModComms.IMCMessage>
-