Package | Description |
---|---|
com.flyingspaniel.nava.fp | |
com.flyingspaniel.nava.request | |
com.flyingspaniel.nava.utils |
Modifier and Type | Interface and Description |
---|---|
static interface |
Fn.AndN<IN,OUT> |
Modifier and Type | Class and Description |
---|---|
static class |
Fn.Base<IN,OUT>
Base class that throws UnsupportedOperationExceptions for all methods.
|
Modifier and Type | Field and Description |
---|---|
static Fn |
Fns.MIN |
static Fn<Number,Number> |
Fns.PRODUCT |
static Fn<Number,Number> |
Fns.SUM |
Modifier and Type | Method and Description |
---|---|
static <IN> boolean |
FP.every(Iterable<IN> ins,
Fn<IN,?> filterFn)
Check if every Object passes Fn (same as forAll())
|
static <IN> boolean |
FP.exists(Iterable<IN> ins,
Fn<IN,?> filterFn)
Check if any Object passes Fn (same as some() and Groovy's any())
|
static <IN> ArrayList<IN> |
FP.filter(Iterable<IN> ins,
Fn<IN,?> filterFn)
Filter (keep) Objects accepted by Fn to a new ArrayList.
|
static <IN> IN |
FP.fold(IN seed,
Iterable<IN> ins,
Fn<IN,IN> fn)
Fold objects using a generified Fn function
|
static <IN> IN |
FP.foldRight(IN seed,
List<IN> ins,
Fn<IN,IN> fn)
FoldRight objects using a generified Fn function
|
static <IN> boolean |
FP.forAll(Iterable<IN> ins,
Fn<IN,?> filterFn)
Check if every Object passes Fn (same as every())
|
static <IN,OUT> ArrayList<OUT> |
FP.map(Iterable<IN> ins,
Fn<IN,OUT> fn)
Map all Objects to a new List, transforming them via Fn
|
static <IN> IN |
FP.reduce(Iterable<IN> ins,
Fn<IN,IN> fn)
Reduce Objects using a generified Fn function
|
static <IN> boolean |
FP.some(Iterable<IN> ins,
Fn<IN,?> fn)
Check if any Object passes Fn (same as exists())
|
Modifier and Type | Class and Description |
---|---|
class |
Request |
Modifier and Type | Class and Description |
---|---|
class |
EmittingCallbackFn<IN,OUT>
"Do It All" base class
Subclasses must override callback(), and may want to override others
|
static class |
EmittingCallbackFn.NOP<IN> |