public final class Preconditions
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static <T extends java.lang.Number> |
between(java.lang.String name,
T actual,
T from,
T to) |
|
static <T extends java.lang.Number> |
greaterOrEqual(java.lang.String name,
T actual,
T min) |
|
static <T extends java.lang.Number> |
greaterThan(java.lang.String name,
T actual,
T min) |
|
static boolean |
isEmpty(java.lang.String value) |
|
static boolean |
isEmpty(java.util.Collection<?> value) |
|
static <T> boolean |
isEmpty(T[] value) |
|
static boolean |
isSet(java.lang.Object o) |
|
static <T extends java.util.Collection> |
oneOfIsNotEmpty(java.lang.String name,
T... objects) |
|
static void |
oneOfIsSet(java.lang.String name,
java.lang.Object... objects) |
|
static <T> void |
require(java.lang.String name,
T argument) |
|
static <T extends java.util.Collection> |
requireNotEmpty(java.lang.String name,
T argument) |
public static boolean isSet(java.lang.Object o)
public static <T> void require(java.lang.String name, T argument)
public static <T extends java.util.Collection> void requireNotEmpty(java.lang.String name, T argument)
public static <T extends java.lang.String> void requireNotEmpty(java.lang.String name, T argument)
public static void oneOfIsSet(java.lang.String name, java.lang.Object... objects)
@SafeVarargs public static <T extends java.util.Collection> void oneOfIsNotEmpty(java.lang.String name, T... objects)
public static <T extends java.lang.Number> void between(java.lang.String name, T actual, T from, T to)
public static <T extends java.lang.Number> void greaterOrEqual(java.lang.String name, T actual, T min)
public static <T extends java.lang.Number> void greaterThan(java.lang.String name, T actual, T min)
public static boolean isEmpty(java.lang.String value)
public static boolean isEmpty(java.util.Collection<?> value)
public static <T> boolean isEmpty(T[] value)
Copyright © 2017–2018 Ocraft Project. All rights reserved.