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 <T> T |
init(FieldInitializer.ThrowingSupplier<T> supplier) |
static <T,R> R |
init(FieldInitializer.ThrowingSupplier<T> supplier,
FieldInitializer.ThrowingFunction<T,R> processor) |
static <T> T |
optInit(FieldInitializer.ThrowingSupplier<T> supplier) |
static <T,R> R |
optInit(FieldInitializer.ThrowingSupplier<T> supplier,
FieldInitializer.ThrowingFunction<T,R> processor) |
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(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)