Klasse IntegerRangeValidator

java.lang.Object
de.esoco.data.validate.IntegerRangeValidator
Alle implementierten Schnittstellen:
Validator<Integer>, Serializable

public class IntegerRangeValidator extends Object implements Validator<Integer>
A validator for integer values that constrains them in a range between a minimal and a maximal value.
Siehe auch:
  • Konstruktordetails

    • IntegerRangeValidator

      public IntegerRangeValidator(int min, int max)
      Creates a new instance that tests against a certain integer range.
      Parameter:
      min - The minimal value (inclusive)
      max - The maximal value (inclusive)
  • Methodendetails

    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Object
      Siehe auch:
    • getMaximum

      public final int getMaximum()
      Returns the maximum value.
      Gibt zurück:
      The maximum value
    • getMinimum

      public final int getMinimum()
      Returns the minimum value.
      Gibt zurück:
      The minimum value
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
      Siehe auch:
    • isValid

      public boolean isValid(Integer value)
      Beschreibung aus Schnittstelle kopiert: Validator
      Must be implemented to validate data element values.
      Angegeben von:
      isValid in Schnittstelle Validator<Integer>
      Parameter:
      value - The value to validate
      Gibt zurück:
      TRUE if the value is valid according to this validator's rules
      Siehe auch: