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> 
- 
- 
Method SummaryAll Methods Instance Methods Default Methods Modifier and Type Method Description default Stream<T>stream()Returns a sequentialStreamwith this RWIterable as its source.- 
Methods inherited from interface java.lang.IterableforEach, iterator, spliterator
 - 
Methods inherited from interface java.util.IteratorforEachRemaining, hasNext, next, remove
 
- 
 
- 
- 
- 
Method Detail- 
streamdefault Stream<T> stream() Returns a sequentialStreamwith 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 Streamover the elements in this RWIterable.
- Implementation Requirements
- The default implementation creates a sequential Streamfrom the RWIterable'sSpliterator.
 
 
- 
 
-