|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.okapi.common.Range
public class Range
Represents a range: a start and end position.
| Field Summary | |
|---|---|
int |
end
Ending position of this range. |
java.lang.String |
id
Optional id for this range. |
int |
start
Starting position of this range. |
| Constructor Summary | |
|---|---|
Range(int start,
int end)
Creates a new range with given starting and ending values. |
|
Range(int start,
int end,
java.lang.String id)
Creates a new range with given starting and ending values and an id. |
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
Gets the string representation of the range with its id (its start and end position, and the id between parenthesis). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int start
public int end
public java.lang.String id
| Constructor Detail |
|---|
public Range(int start,
int end)
start - the start value of the new range.end - the end value of the new range.
public Range(int start,
int end,
java.lang.String id)
start - the start value of the new range.end - the end value of the new range.id - the identifier value of the new range.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||