public abstract class BuilderUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
assertNonNull(T value,
String exceptionMessage)
Assert that the given
value is non null. |
static <T> void |
assertThat(T value,
Predicate<T> assertion,
String exceptionMessage)
|
public static <T> void assertThat(T value,
Predicate<T> assertion,
String exceptionMessage)
throws AxonConfigurationException
value will result to true through the assertion Predicate.
If not, an AxonConfigurationException is thrown containing the provided exceptionMessage.T - a generic specifying the type of the value, which is the input for the
assertionvalue - a T specifying the value to assertassertion - a Predicate to test value againstexceptionMessage - a Supplier of the exception X if assertion evaluates to falseAxonConfigurationException - if the value asserts to false by the assertionpublic static <T> void assertNonNull(T value,
String exceptionMessage)
throws AxonConfigurationException
value is non null. If not, an AxonConfigurationException is thrown
containing the provided exceptionMessage.T - a generic specifying the type of the value, which is the input for the
assertionvalue - a T specifying the value to assertAxonConfigurationException - if the value equals nullCopyright © 2010–2018. All rights reserved.