Package net.minecraft.util.collection
Class ReusableStream<T>
java.lang.Object
net.minecraft.util.collection.ReusableStream<T>
public class ReusableStream<T> extends Object
A wrapper that automatically flattens the original stream and provides duplicates iterating a copy of that stream's output.
-
Field Summary
Fields Modifier and Type Field Description private List<T>
collectedElements
private Spliterator<T>
source
-
Constructor Summary
Constructors Constructor Description ReusableStream(Stream<T> stream)
-
Method Summary
-
Field Details
-
collectedElements
-
source
-
-
Constructor Details
-
ReusableStream
-
-
Method Details
-
stream
-