Class Validation.ListRange

  • Enclosing class:
    Validation

    public static final class Validation.ListRange
    extends Object
    For "list-multi", validation can indicate that a minimum and maximum number of options should be selected and/or entered. This selection range MAY be combined with the other methods to provide more flexibility.
    See Also:
    3.3 Selection Ranges in "list-multi"
    • Constructor Detail

      • ListRange

        public ListRange​(int min,
                         int max)
        Creates a list range for multi-text fields.
        Parameters:
        min - The minimum allowable number of selected/entered values.
        max - The maximum allowable number of selected/entered values.
    • Method Detail

      • getMin

        public final Integer getMin()
        Gets the minimum allowable number of selected/entered values.
        Returns:
        The minimum allowable number of selected/entered values.
      • getMax

        public final Integer getMax()
        Gets the maximum allowable number of selected/entered values.
        Returns:
        The maximum allowable number of selected/entered values.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object