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