| Package | Description |
|---|---|
| org.organicdesign.fp |
A data definition language, and other tools for writing functional Java.
|
| org.organicdesign.fp.function |
Exception-friendly functional interfaces named by the number of arguments: Function0, Function1, Function2....
|
| Modifier and Type | Method and Description |
|---|---|
static <T> LazyRef<T> |
LazyRef.of(Function0<T> producer)
Construct a LazyRef from the given initialization function.
|
<U> U |
Option.patMat(Function1<T,U> has,
Function0<U> hasNot)
Pass in a function to execute if its Some and another to execute if its None.
|
<U> U |
Option.None.patMat(Function1<T,U> has,
Function0<U> hasNot)
Pass in a function to execute if its Some and another to execute if its None.
|
<U> U |
Option.Some.patMat(Function1<T,U> has,
Function0<U> hasNot)
Pass in a function to execute if its Some and another to execute if its None.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Function0.Const |
static class |
Function0.Constant<K>
Wraps a value in a constant function.
|
| Modifier and Type | Field and Description |
|---|---|
static Function0<Object> |
Function0.NULL
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <K> Function0<K> |
Function0.constantFunction(K k) |
Copyright © 2017. All rights reserved.