public abstract class ObjectUtils
extends java.lang.Object
ObjectUtils is a utility class for performing different opeations on objects.Object| Modifier and Type | Class and Description |
|---|---|
static interface |
ObjectUtils.ExceptionThrowingOperation<T> |
| Constructor and Description |
|---|
ObjectUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
doOperationSafely(ObjectUtils.ExceptionThrowingOperation<T> operation) |
static <T> T |
doOperationSafely(ObjectUtils.ExceptionThrowingOperation<T> operation,
T defaultValue) |
static <T> T |
rethrowAsRuntimeException(ObjectUtils.ExceptionThrowingOperation<T> operation) |
public static <T> T doOperationSafely(ObjectUtils.ExceptionThrowingOperation<T> operation)
public static <T> T doOperationSafely(ObjectUtils.ExceptionThrowingOperation<T> operation, T defaultValue)
public static <T> T rethrowAsRuntimeException(ObjectUtils.ExceptionThrowingOperation<T> operation)