R
- Return type of the function.public interface λ<R> extends Serializable
A checked function may throw an exception. The exception type cannot be expressed as a generic type parameter because Java cannot calculate type bounds on function composition.
Modifier and Type | Interface and Description |
---|---|
static interface |
λ.Memoized
Zero Abstract Method (ZAM) interface for marking functions as memoized using intersection types.
|
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID
The serial version uid.
|
Modifier and Type | Method and Description |
---|---|
int |
arity() |
λ<?> |
curried()
Returns a curried version of this function.
|
default boolean |
isMemoized()
Checks if this function is memoizing (= caching) computed values.
|
λ<R> |
memoized()
Returns a memoizing version of this function, which computes the return value for given arguments only one time.
|
λ<R> |
reversed()
Returns a reversed version of this function.
|
λ<R> |
tupled()
Returns a tupled version of this function.
|
static final long serialVersionUID
int arity()
λ<?> curried()
λ<R> tupled()
λ<R> reversed()
λ<R> memoized()
Please note that memoizing functions do not permit null
as single argument or return value.
default boolean isMemoized()
Copyright © 2016. All Rights Reserved.