Interface FixedPrecisionDecimalNumberComponent<S>
- Type Parameters:
S
- the type of this validator
- All Known Subinterfaces:
DoubleValidator
,FloatValidator
,PrimitiveDoubleValidator
,PrimitiveFloatValidator
public interface FixedPrecisionDecimalNumberComponent<S>
Methods that all fixed-precision
Number
validators must contain.-
Method Summary
Modifier and TypeMethodDescriptionisFinite()
Ensures that the value is a finite number.Ensures that the value is an infinite number.Ensures that the value is the result of a mathematically undefined numerical operation (such as division by zero) or don't have a representation in real numbers (such as the square-root of -1).isNumber()
Ensures that the value is a well-defined number.
-
Method Details
-
isNumber
S isNumber()Ensures that the value is a well-defined number.- Returns:
- this
- Throws:
NullPointerException
- if the value isnull
IllegalArgumentException
- if value is not a well-defined number- See Also:
-
isNotNumber
S isNotNumber()Ensures that the value is the result of a mathematically undefined numerical operation (such as division by zero) or don't have a representation in real numbers (such as the square-root of -1).- Returns:
- this
- Throws:
NullPointerException
- if the value isnull
IllegalArgumentException
- if value is a well-defined number- See Also:
-
isFinite
S isFinite()Ensures that the value is a finite number.- Returns:
- this
- Throws:
NullPointerException
- if the value isnull
IllegalArgumentException
- if the value is:- an infinite number
- not a number
- See Also:
-
isInfinite
S isInfinite()Ensures that the value is an infinite number.- Returns:
- this
- Throws:
NullPointerException
- if the value isnull
IllegalArgumentException
- if the value is:- a finite number
- not a number
- See Also:
-