Interface PositiveNumberComponent<S>
- Type Parameters:
S- the type of this validator
- All Known Subinterfaces:
BigDecimalValidator,BigIntegerValidator,ByteValidator,DoubleValidator,FloatValidator,IntegerValidator,LongValidator,PrimitiveByteValidator,PrimitiveDoubleValidator,PrimitiveFloatValidator,PrimitiveIntegerValidator,PrimitiveLongValidator,PrimitiveShortValidator,PrimitiveUnsignedIntegerValidator,ShortValidator,UnsignedIntegerValidator
public interface PositiveNumberComponent<S>
Methods that validators for numbers that may be positive must contain.
-
Method Summary
Modifier and TypeMethodDescriptionEnsures that the value is not a positive number.Ensures that the value is positive.
-
Method Details
-
isPositive
S isPositive()Ensures that the value is positive.- Returns:
- this
- Throws:
NullPointerException- if the value isnullIllegalArgumentException- if the value is:- not positive
- not a number
-
isNotPositive
S isNotPositive()Ensures that the value is not a positive number.- Returns:
- this
- Throws:
NullPointerException- if the value isnullIllegalArgumentException- if the value is a positive number
-