Interface ZeroNumberComponent<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 ZeroNumberComponent<S>
Methods that validators for numbers that may be zero must contain.
-
Method Summary
-
Method Details
-
isZero
S isZero()Ensures that the value is zero.-0.0
is considered to be zero *and* negative.- Returns:
- this
- Throws:
NullPointerException
- if the value isnull
IllegalArgumentException
- if the value is:- not zero
- not a number
-
isNotZero
S isNotZero()Ensures that the value is not zero.-0.0
is considered to be zero *and* negative.- Returns:
- this
- Throws:
NullPointerException
- if the value isnull
IllegalArgumentException
- if the value is zero
-