public class FieldInitializer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FieldInitializer.ThrowingFunction<A,R> |
static interface |
FieldInitializer.ThrowingSupplier<T> |
| Constructor and Description |
|---|
FieldInitializer() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
condInit(boolean init,
FieldInitializer.ThrowingSupplier<T> supplier) |
static <T,R> R |
condInit(boolean init,
FieldInitializer.ThrowingSupplier<T> supplier,
FieldInitializer.ThrowingFunction<T,R> processor) |
static <C,T> T |
condReqInit(FieldInitializer.ThrowingSupplier<C> condition,
FieldInitializer.ThrowingFunction<C,T> supplier,
java.util.function.Supplier<java.lang.Throwable> exceptionSupplier) |
static <T> T |
init(FieldInitializer.ThrowingSupplier<T> supplier) |
static <T,R> R |
init(FieldInitializer.ThrowingSupplier<T> supplier,
FieldInitializer.ThrowingFunction<T,R> processor) |
static <T> T |
init(T value,
java.util.function.Consumer<T> initializer) |
static <T> T |
optInit(FieldInitializer.ThrowingSupplier<T> supplier) |
static <T,R> R |
optInit(FieldInitializer.ThrowingSupplier<T> supplier,
FieldInitializer.ThrowingFunction<T,R> processor) |
static <T> T |
process(FieldInitializer.ThrowingSupplier<T> supplier,
java.util.function.Function<java.lang.Throwable,java.lang.Throwable> exceptionProcessor) |
static <T,R> R |
reqInit(FieldInitializer.ThrowingSupplier<T> supplier,
FieldInitializer.ThrowingFunction<T,R> processor,
java.util.function.Supplier<java.lang.Throwable> exceptionSupplier) |
static <T> T |
reqInit(FieldInitializer.ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.Throwable> exceptionSupplier) |
static <T,R> R |
reqOptInit(boolean init,
FieldInitializer.ThrowingSupplier<T> supplier,
FieldInitializer.ThrowingFunction<T,R> processor,
java.util.function.Supplier<java.lang.Throwable> exceptionSupplier) |
static <T> T |
reqOptInit(boolean init,
FieldInitializer.ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.Throwable> exceptionSupplier) |
public static <T> T init(T value,
java.util.function.Consumer<T> initializer)
public static <T> T init(FieldInitializer.ThrowingSupplier<T> supplier)
public static <T,R> R init(FieldInitializer.ThrowingSupplier<T> supplier, FieldInitializer.ThrowingFunction<T,R> processor)
public static <T> T reqInit(FieldInitializer.ThrowingSupplier<T> supplier, java.util.function.Supplier<java.lang.Throwable> exceptionSupplier)
public static <T,R> R reqInit(FieldInitializer.ThrowingSupplier<T> supplier, FieldInitializer.ThrowingFunction<T,R> processor, java.util.function.Supplier<java.lang.Throwable> exceptionSupplier)
public static <T> T condInit(boolean init,
FieldInitializer.ThrowingSupplier<T> supplier)
public static <T,R> R condInit(boolean init,
FieldInitializer.ThrowingSupplier<T> supplier,
FieldInitializer.ThrowingFunction<T,R> processor)
public static <T> T optInit(FieldInitializer.ThrowingSupplier<T> supplier)
public static <T,R> R optInit(FieldInitializer.ThrowingSupplier<T> supplier, FieldInitializer.ThrowingFunction<T,R> processor)
public static <T> T reqOptInit(boolean init,
FieldInitializer.ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.Throwable> exceptionSupplier)
public static <T,R> R reqOptInit(boolean init,
FieldInitializer.ThrowingSupplier<T> supplier,
FieldInitializer.ThrowingFunction<T,R> processor,
java.util.function.Supplier<java.lang.Throwable> exceptionSupplier)
public static <C,T> T condReqInit(FieldInitializer.ThrowingSupplier<C> condition, FieldInitializer.ThrowingFunction<C,T> supplier, java.util.function.Supplier<java.lang.Throwable> exceptionSupplier)
public static <T> T process(FieldInitializer.ThrowingSupplier<T> supplier, java.util.function.Function<java.lang.Throwable,java.lang.Throwable> exceptionProcessor)