Class Range
- java.lang.Object
-
- net.sf.gridarta.model.validation.checks.Range
-
public class Range extends java.lang.ObjectRepresents a range of attribute values.
-
-
Constructor Summary
Constructors Constructor Description Range(int min, int max)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMax()Returns the maximum allowed value.intgetMin()Returns the minimum allowed value.booleanisWithinRange(int value)Returns whether a given attribute value is within the valid attribute values range.
-
-
-
Method Detail
-
isWithinRange
public boolean isWithinRange(int value)
Returns whether a given attribute value is within the valid attribute values range.- Parameters:
value- the value to check- Returns:
- whether the value is valid
-
getMin
public int getMin()
Returns the minimum allowed value.- Returns:
- the minimum allowed value
-
getMax
public int getMax()
Returns the maximum allowed value.- Returns:
- the maximum allowed value
-
-