T - the type of argument 1E - the Exception type that the operation may throw@FunctionalInterface public interface ObjToIntE<T,E extends Exception>
(T) -> int.| Modifier and Type | Method and Description |
|---|---|
static <T,E extends Exception> |
bind(ObjToIntE<T,E> f,
T t)
Binds
(t) to f, returning a new function
of type () -> int. |
default NilToIntE<E> |
bind(T t)
Binds
(t) to this, returning a new function
of type () -> int. |
int |
call(T t)
Performs this operation.
|
static <T,E extends Exception> NilToIntE<E> bind(ObjToIntE<T,E> f, T t)
(t) to f, returning a new function
of type () -> int.T - the type of argument 1E - the Exception type that the operation may throwf - the unbound functiont - the argument() -> int that calls
f.call(t) and returns the result.Copyright © 2015. All rights reserved.