Groovy Documentation

com.github.mperry.fg
[Groovy] Class CollectionExtension

java.lang.Object
  com.github.mperry.fg.CollectionExtension

@groovy.transform.TypeChecked
class CollectionExtension

Created with IntelliJ IDEA. User: MarkPerry Date: 12/06/13 Time: 11:27 PM To change this template use File | Settings | File Templates.


Method Summary
static java.lang.Boolean exists(java.util.Collection c, groovy.lang.Closure f)

static java.lang.Boolean exists(java.util.Collection c, F f)

static java.util.Collection filter(java.util.Collection collection, groovy.lang.Closure f)

static java.util.Collection filter(java.util.Collection collection, F f)

static Option findFirst(java.util.Collection c, groovy.lang.Closure f)

static Option findFirst(java.util.Collection c, F f)

static java.util.List flatMap(java.util.Collection c, groovy.lang.Closure f)

static java.util.List flatMap(java.util.Collection c, F f)

static B fold(java.util.Collection collection, B initial, groovy.lang.Closure f)

static B fold(java.util.Collection collection, B initial, F f)

static java.lang.Boolean forAll(java.util.Collection c, F f)

static java.lang.Boolean forAll(java.util.Collection c, groovy.lang.Closure f)

static java.util.List map(java.util.Collection collection, groovy.lang.Closure f)

static java.util.List map(java.util.Collection collection, F f)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

exists

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static java.lang.Boolean exists(java.util.Collection c, groovy.lang.Closure f)


exists

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static java.lang.Boolean exists(java.util.Collection c, F f)


filter

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static java.util.Collection filter(java.util.Collection collection, groovy.lang.Closure f)


filter

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static java.util.Collection filter(java.util.Collection collection, F f)


findFirst

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static Option findFirst(java.util.Collection c, groovy.lang.Closure f)


findFirst

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static Option findFirst(java.util.Collection c, F f)


flatMap

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static java.util.List flatMap(java.util.Collection c, groovy.lang.Closure f)


flatMap

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static java.util.List flatMap(java.util.Collection c, F f)


fold

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static B fold(java.util.Collection collection, B initial, groovy.lang.Closure f)


fold

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static B fold(java.util.Collection collection, B initial, F f)


forAll

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static java.lang.Boolean forAll(java.util.Collection c, F f)


forAll

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static java.lang.Boolean forAll(java.util.Collection c, groovy.lang.Closure f)


map

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static java.util.List map(java.util.Collection collection, groovy.lang.Closure f)


map

@groovy.transform.TypeChecked(TypeCheckingMode.SKIP)
static java.util.List map(java.util.Collection collection, F f)


 

Groovy Documentation