Class ObjectMediator<A>
java.lang.Object
ch.nolix.base.validation.base.AbstractMediator
ch.nolix.base.validation.object.AbstractObjectMediator<A>
ch.nolix.base.validation.object.ObjectMediator<A>
- Type Parameters:
A- is the type of the argument of anObjectMediator.
A
ObjectMediator is not mutable.- Author:
- Silvan Wyss
-
Field Summary
Fields inherited from class AbstractMediator
DEFAULT_ARGUMENT_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ObjectMediator<T> forArgumentAndArgumentName(T argument, String argumentName) Methods inherited from class AbstractObjectMediator
fulfills, hasSameStringRepresentationAs, hasStringRepresentation, is, isEqualTo, isNot, isNotEqualTo, isNotNull, isNull, isOfType
-
Method Details
-
forArgumentAndArgumentName
- Type Parameters:
T- is the type of the given argument.- Parameters:
argument-argumentName-- Returns:
- a new
ObjectMediatorfor the given argument and argumentName. - Throws:
RuntimeException- if the given argumentName is null or blank.
-