public class Ensure extends Object
| Constructor and Description |
|---|
Ensure() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureArgumentContentIsGreaterThan(int value,
int limit) |
static void |
ensureArgumentIsInside(double value,
double min,
double max) |
static void |
ensureArgumentIsInside(int value,
int min,
int max) |
static void |
ensureArgumentIsNotEmpty(Object[] array) |
static void |
ensureArgumentIsNotEmpty(String value) |
static void |
ensureArgumentNotNull(Object object) |
static void |
ensureArgumentNotZero(double value) |
static void |
ensureArgumentNull(String message,
Object object) |
static void |
ensureArgumentsEqual(int value,
int other) |
static <T> void |
ensureThat(String message,
T actual,
ICondition<T> condition) |
static <T> void |
ensureThat(T actual,
ICondition<T> condition) |
static <T> void |
ensureThatArgument(String message,
T actual,
ICondition<T> condition) |
static <T> void |
ensureThatArgument(T actual,
ICondition<T> condition) |
public static void ensureArgumentNotNull(Object object)
public static void ensureArgumentNotZero(double value)
public static void ensureArgumentIsInside(int value,
int min,
int max)
public static void ensureArgumentsEqual(int value,
int other)
public static void ensureArgumentIsNotEmpty(Object[] array)
public static void ensureArgumentContentIsGreaterThan(int value,
int limit)
public static void ensureArgumentIsNotEmpty(String value)
public static void ensureArgumentIsInside(double value,
double min,
double max)
public static <T> void ensureThat(T actual,
ICondition<T> condition)
public static <T> void ensureThatArgument(T actual,
ICondition<T> condition)
public static <T> void ensureThatArgument(String message, T actual, ICondition<T> condition)
public static <T> void ensureThat(String message, T actual, ICondition<T> condition)
Copyright © 2007–2017 Andreas W. Bartels. All rights reserved.