Package | Description |
---|---|
org.valid4j |
Simple assertion and validation library
|
Modifier and Type | Class and Description |
---|---|
class |
ExceptionNoArgumentFactory<T extends Exception>
Factory that constructs a recoverable exception given no argument.
|
class |
ExceptionOneStringArgumentFactory<T extends Exception>
Factory that constructs a recoverable exception given a string argument.
|
Modifier and Type | Method and Description |
---|---|
static <X extends Exception> |
ExceptionFactories.exception(Class<X> exceptionClass) |
static <X extends Exception> |
Validation.otherwiseThrowing(Class<X> exceptionClass) |
Modifier and Type | Method and Description |
---|---|
static <X extends Exception> |
Validation.validate(boolean condition,
ExceptionFactory<X> factory)
Validate the boolean expression that is supposed to be true.
|
static <T,X extends Exception> |
Validation.validate(T o,
org.hamcrest.Matcher<?> matcher,
ExceptionFactory<X> factory)
Validate the given object that is supposed to satisfy the matcher.
|
Constructor and Description |
---|
Validator(ExceptionFactory<T> exceptionFactory) |
Copyright © 2014–2015 valid4j. All rights reserved.