Interface RWIterable<T>
-
- Type Parameters:
T
- The type of object that this iterates over
- All Known Subinterfaces:
RuntimeListValue<T>
public interface RWIterable<T> extends Iterable<T>, Iterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description static com.redwood.scheduler.infrastructure.logging.Versions
VERSION_RWIterable
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Stream<T>
stream()
Returns a sequentialStream
with this RWIterable as its source.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
stream
default Stream<T> stream()
Returns a sequentialStream
with this RWIterable as its source.This method should be overridden when the
Iterable.spliterator()
method cannot return a spliterator that isIMMUTABLE
,CONCURRENT
, or late-binding. (SeeIterable.spliterator()
for details.)- Returns:
- a sequential
Stream
over the elements in this RWIterable. - Implementation Requirements
- The default implementation creates a sequential
Stream
from the RWIterable'sSpliterator
.
-
-