Interface DecimalNumberComponent<S>
- Type Parameters:
S
- the type of this validator
- All Known Subinterfaces:
BigDecimalValidator
,DoubleValidator
,FloatValidator
,PrimitiveDoubleValidator
,PrimitiveFloatValidator
public interface DecimalNumberComponent<S>
Methods that all decimal
Number
validators must contain.-
Method Summary
Modifier and TypeMethodDescriptionEnsures that the value is not a whole number.Ensures that the value is a whole number.
-
Method Details
-
isWholeNumber
S isWholeNumber()Ensures that the value is a whole number.- Returns:
- this
- Throws:
NullPointerException
- if the value isnull
IllegalArgumentException
- if the value is:- not a whole number
- not a number
-
isNotWholeNumber
S isNotWholeNumber()Ensures that the value is not a whole number.- Returns:
- this
- Throws:
NullPointerException
- if the value isnull
IllegalArgumentException
- if the value is a whole number
-