public class Lambda extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Lambda.CallableThatThrows<T> |
static interface |
Lambda.FunctionThatThrows<T,R> |
static interface |
Lambda.IteratorWithIndex<T> |
static interface |
Lambda.RunnableThatThrows |
Modifier and Type | Field and Description |
---|---|
static BiConsumer<Integer,Lambda.RunnableThatThrows> |
repeater
repeats func function limit number of times
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
forEachWithIndex(Iterable<T> iterable,
Lambda.IteratorWithIndex<T> iteratorWithIndex) |
static <T> Callable<T> |
silent(Lambda.CallableThatThrows<T> functionThatThrows) |
static <T,R> Function<T,R> |
silent(Lambda.FunctionThatThrows<T,R> functionThatThrows) |
static Runnable |
silent(Lambda.RunnableThatThrows functionThatThrows) |
static <T> T |
withLock(Lock lock,
Callable<T> callable) |
static void |
withLock(Lock lock,
Runnable runnable) |
public static final BiConsumer<Integer,Lambda.RunnableThatThrows> repeater
public static <T,R> Function<T,R> silent(Lambda.FunctionThatThrows<T,R> functionThatThrows)
public static <T> Callable<T> silent(Lambda.CallableThatThrows<T> functionThatThrows)
public static Runnable silent(Lambda.RunnableThatThrows functionThatThrows)
public static <T> void forEachWithIndex(Iterable<T> iterable, Lambda.IteratorWithIndex<T> iteratorWithIndex)