Package de.esoco.data.validate
Klasse IntegerRangeValidator
java.lang.Object
de.esoco.data.validate.IntegerRangeValidator
- Alle implementierten Schnittstellen:
Validator<Integer>
,Serializable
A validator for integer values that constrains them in a range between a
minimal and a maximal value.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungIntegerRangeValidator
(int min, int max) Creates a new instance that tests against a certain integer range. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
final int
Returns the maximum value.final int
Returns the minimum value.int
hashCode()
boolean
Must be implemented to validate data element values.
-
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
-
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() -
isValid
Beschreibung aus Schnittstelle kopiert:Validator
Must be implemented to validate data element values.
-