|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unitesk.atp.text.location.Range
public class Range
Range is specified by start and end positions.
Position
Constructor Summary | |
---|---|
Range()
Stub constructor sets (start,end) to the stub values. |
|
Range(Position start,
Position end)
Creates a range with the specified start and end positions. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Ranges are equal if lines and columns are equal. |
Position |
getEnd()
Returns the end position of this range. |
Position |
getStart()
Returns the start position of this range. |
int |
hashCode()
|
String |
toString()
Returns the string representation of this range. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Range()
Position.Position()
public Range(Position start, Position end)
start
- Start position of new range.end
- End position of new range.
NullPointerException
- if start or end is null
.Method Detail |
---|
public Position getStart()
public Position getEnd()
public String toString()
toString
in class Object
"${start}-${end}"
.Position.toString()
public boolean equals(Object obj)
equals
in class Object
obj
- The object to compare with.public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |