groovy.stream.StreamExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of groovy-stream Show documentation
Show all versions of groovy-stream Show documentation
A collection of classes to give a fluent builder for Streams (Lazy Groovy Generators).
package groovy.stream ;
import groovy.lang.Closure ;
import java.util.* ;
public class StreamExtension {
public static Stream toStream( Closure delegate ) {
return Stream.from( delegate ) ;
}
public static Stream toStream( Iterator delegate ) {
return Stream.from( delegate ) ;
}
public static Stream toStream( Iterable delegate ) {
return Stream.from( delegate ) ;
}
public static Stream toStream( LinkedHashMap delegate ) {
return Stream.from( delegate ) ;
}
public static Stream toStream( ArrayList delegate ) {
return Stream.from( delegate ) ;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy