All Packages Class Hierarchy This Package Previous Next Index
Class com.trumphurst.utils.TRangeLongProperty
java.lang.Object
|
+----com.trumphurst.utils.TLongProperty
|
+----com.trumphurst.utils.TRangeLongProperty
- public class TRangeLongProperty
- extends TLongProperty
A TProperty which holds a long value limited to a range
-
high
- The highest permitted value in the range
-
low
- The lowest permitted value in the range
-
TRangeLongProperty(long, long, long)
- Construct with a value and range
-
arguments()
- Return a String representation of the arguments necessary to construct the property.
-
construct(String)
- "Construct" the property from a String argument list.
-
set(long)
-
Set the value
low
protected long low
- The lowest permitted value in the range
high
protected long high
- The highest permitted value in the range
TRangeLongProperty
public TRangeLongProperty(long l,
long low,
long high) throws ValidationException
- Construct with a value and range
- Parameters:
- l - the value
- low - the lowest permissible value
- high - the highest permissible value
- Throws: ValidationException
- if l < low or l > high
set
public void set(long l) throws ValidationException
- Set the value
- Parameters:
- l - the value to set
- Throws: ValidationException
- if l < low or l > high
- Overrides:
- set in class TLongProperty
construct
public void construct(String arguments) throws ValidationException
- "Construct" the property from a String argument list.
- Parameters:
- arguments - a string of the form "1,0,2" representing "value,low,high"
- Throws: ValidationException
- if the arguments cannot be parsed, or
the value is outside the specified range.
- Overrides:
- construct in class TLongProperty
arguments
public String arguments()
- Return a String representation of the arguments necessary to construct the property.
- Returns:
- a string of the form "1,0,2" representing "value,low,high"
- Overrides:
- arguments in class TLongProperty
All Packages Class Hierarchy This Package Previous Next Index