public class Position extends Object implements Comparable<Position>
| Constructor and Description |
|---|
Position(int begin,
int end)
Create position for given begin and end.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Position other) |
boolean |
equals(Object obj) |
int |
getBegin() |
int |
getEnd() |
int |
hashCode() |
static Position |
of(Element element)
Factory method to create position from Element (take begin and end from Element object).
|
String |
toString() |
public Position(int begin,
int end)
public static Position of(Element element)
public int getBegin()
public int getEnd()
public int compareTo(Position other)
compareTo in interface Comparable<Position>Copyright © 2020. All rights reserved.