All Downloads are FREE. Search and download functionalities are using the official Maven repository.

groovy.stream.StreamExtension Maven / Gradle / Ivy

Go to download

A collection of classes to give a fluent builder for Streams (Lazy Groovy Generators).

There is a newer version: 0.9.1
Show newest version
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