Class MultiDoubleMediator
java.lang.Object
ch.nolix.base.validation.multi.AbstractMultiArgumentMediator<Double>
ch.nolix.base.validation.multi.MultiDoubleMediator
A
MultiDoubleMediator is not mutable.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidareBiggerThan(double limit) voidvoidareSmallerThan(double limit) static MultiDoubleMediatorforArugments(double[] arguments) static MultiDoubleMediatorforArugments(Iterable<Double> arguments) Methods inherited from class AbstractMultiArgumentMediator
areNotNull
-
Method Details
-
forArugments
- Parameters:
arguments-- Returns:
- a new
MultiDoubleMediatorfor the given arguments. - Throws:
RuntimeException- if the given arguments is null.
-
forArugments
- Parameters:
arguments-- Returns:
- a new
MultiDoubleMediatorfor the given arguments. - Throws:
RuntimeException- if the given arguments is null.
-
areBiggerThan
public void areBiggerThan(double limit) - Parameters:
limit-- Throws:
RuntimeException- if one of the arguments of the currentMultiDoubleMediatoris null or not bigger than the given limit.
-
arePositive
public void arePositive()- Throws:
RuntimeException- if one of the arguments of the currentMultiDoubleMediatoris null or not positive.
-
areSmallerThan
public void areSmallerThan(double limit) - Parameters:
limit-- Throws:
RuntimeException- if one of the arguments of the currentMultiDoubleMediatoris null or not bigger than the given limit.
-