Class MultiLongMediator
java.lang.Object
ch.nolix.base.validation.multi.AbstractMultiArgumentMediator<Long>
ch.nolix.base.validation.multi.MultiLongMediator
A
MultiLongMediator is not mutable.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidstatic MultiLongMediatorforArguments(int[] arguments) static MultiLongMediatorforArguments(long[] arguments) static MultiLongMediatorforArguments(Iterable<Long> arguments) Methods inherited from class AbstractMultiArgumentMediator
areNotNull
-
Method Details
-
forArguments
- Parameters:
arguments-- Returns:
- a new
MultiLongMediatorfor the given arguments. - Throws:
RuntimeException- if the given arguments is null.
-
forArguments
- Parameters:
arguments-- Returns:
- a new
MultiLongMediatorfor the given arguments. - Throws:
RuntimeException- if the given arguments is null.
-
forArguments
- Parameters:
arguments-- Returns:
- a new
MultiLongMediatorfor the given arguments. - Throws:
RuntimeException- if the given arguments is null.
-
arePositive
public void arePositive()- Throws:
RuntimeException- if one of the arguments of the currentMultiLongMediatoris null or not positive.
-
areNotNegative
public void areNotNegative()- Throws:
RuntimeException- if one of the arguments of the currentMultiLongMediatoris null or negative.
-