public abstract class Preconditions extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Preconditions.LazyArgument |
| Modifier and Type | Method and Description |
|---|---|
protected static Object |
asObject(Object value) |
static void |
checkArgument(boolean expression,
String errorMessage,
Object... args) |
static <T> T |
checkNotNull(T reference,
String errorMessage,
Object... args) |
static <T> Optional<T> |
checkPresent(Optional<T> reference,
String errorMessage,
Object... args) |
protected static String |
format(String message,
Object... args) |
static Preconditions.LazyArgument |
lazy(Supplier<?> supplier) |
public static void checkArgument(boolean expression,
String errorMessage,
Object... args)
public static <T> Optional<T> checkPresent(Optional<T> reference, String errorMessage, Object... args)
public static Preconditions.LazyArgument lazy(Supplier<?> supplier)
Copyright © 2024. All rights reserved.