Class NamableDoubleMediator
java.lang.Object
ch.nolix.base.validation.base.AbstractMediator
ch.nolix.base.validation.primitive.AbstractDoubleMediator
ch.nolix.base.validation.primitive.NamableDoubleMediator
A
NamableDoubleMediator is not mutable.- Author:
- Silvan Wyss
-
Field Summary
Fields inherited from class AbstractMediator
DEFAULT_ARGUMENT_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic NamableDoubleMediatorforArgument(double argument) thatIsNamed(String argumentName) Methods inherited from class AbstractDoubleMediator
isBetween, isBiggerThan, isEqualTo, isNegative, isNotBiggerThan, isNotEqualTo, isNotNegative, isNotPositive, isNotSmallerThan, isPositive, isSmallerThan, withMaxDeviation
-
Method Details
-
forArgument
- Parameters:
argument-- Returns:
- a new
NamableDoubleMediatorfor the given argument.
-
thatIsNamed
- Parameters:
argumentName-- Returns:
- a new
NamableDoubleMediatorfor the argument of the currentNamableDoubleMediatorand the given argumentName. - Throws:
RuntimeException- if the given argumentName is null or blank.
-