Class ComparableValidator<T extends java.lang.Comparable<T>>

    • Constructor Detail

      • ComparableValidator

        public ComparableValidator()
      • ComparableValidator

        public ComparableValidator​(java.util.Locale locale)
    • Method Detail

      • isValid

        public boolean isValid​(java.lang.String text)
        Description copied from interface: Validator
        Determines if a text value is valid based on the rules of the validator.
        Specified by:
        isValid in interface Validator
        Overrides:
        isValid in class FormattedValidator<java.text.NumberFormat>
        Parameters:
        text - The text to test.
        Returns:
        true if the value is valid; false, otherwise.
      • textToComparable

        protected final java.lang.Comparable<?> textToComparable​(java.lang.String text)