Class DoubleTypeValidator

  • All Implemented Interfaces:
    Validator

    public final class DoubleTypeValidator
    extends TypeValidator
    Validation for fields of Double/double type. Allows numbers that could be compared against double as the values.
    • Method Detail

      • getInstance

        public static DoubleTypeValidator getInstance()
        Get the instance.
        Returns:
        the Singleton instance of this validator
      • appliesTo

        protected boolean appliesTo​(Class<?> type)
        Description copied from class: TypeValidator
        Used by apply to figure out whether to apply the validation or simply return.
        Specified by:
        appliesTo in class TypeValidator
        Parameters:
        type - the type to be validated
        Returns:
        true if this validator applies to this type, false otherwise