|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjef.dna.util.Range
public class Range
This class represents the concept of range, useful for representing the correct value an entity
shoul conform to in a ValidationExceptionAncestor rooted class.
| Constructor Summary | |
|---|---|
Range(int start,
int end)
Creates a new instance of Range |
|
| Method Summary | |
|---|---|
int |
getEnd()
Returns the last valid value of the range |
int |
getStart()
Returns the first valid value of the range. |
void |
setEnd(int end)
Sets the last valid value of the range |
void |
setStart(int start)
Sets the first valid value of the range. |
java.lang.String |
toString()
Returns a String representation of the current Range instance
in the following form: [start, end]. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Range(int start,
int end)
start - The first value included in the rangeend - The last value included in the range| Method Detail |
|---|
public int getStart()
public void setStart(int start)
start - The first valid value of the rangepublic int getEnd()
public void setEnd(int end)
end - The last valid value of the rangepublic java.lang.String toString()
String representation of the current Range instance
in the following form: [start, end].
toString in class java.lang.ObjectString representation of the Range
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||