Package org.apache.tools.ant.util
Class StreamUtils
java.lang.Object
org.apache.tools.ant.util.StreamUtils
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> Stream<T>Turn Enumeration into a Streamstatic <T> Stream<T>iteratorAsStream(Iterator<T> i) Turn Iterator into a Stream
- 
Constructor Details- 
StreamUtilspublic StreamUtils()
 
- 
- 
Method Details- 
enumerationAsStreamTurn Enumeration into a Stream- Type Parameters:
- T- Enumeration type
- Parameters:
- e- Enumeration
- Returns:
- Stream
 
- 
iteratorAsStreamTurn Iterator into a Stream- Type Parameters:
- T- Iterator type
- Parameters:
- i- Iterator
- Returns:
- Stream
 
 
-