public class AceRange
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AceRange(int row1,
int col1,
int row2,
int col2) |
Modifier and Type | Method and Description |
---|---|
TransportDoc.TransportRange |
asTransport() |
boolean |
equals(java.lang.Object o) |
static AceRange |
fromPositions(int start,
int end,
java.lang.String text) |
static AceRange |
fromPositions(int start,
int end,
java.lang.String[] lines) |
static AceRange |
fromTransport(TransportDoc.TransportRange tr) |
int |
getEndCol() |
int |
getEndRow() |
int[] |
getPositions(java.lang.String text) |
int[] |
getPositions(java.lang.String[] lines) |
int |
getStartCol() |
int |
getStartRow() |
int |
hashCode() |
boolean |
isBackwards() |
boolean |
isZeroLength() |
AceRange |
reversed() |
java.lang.String |
toString() |
public static AceRange fromPositions(int start, int end, java.lang.String text)
public static AceRange fromPositions(int start, int end, java.lang.String[] lines)
public int getStartRow()
public int getStartCol()
public int getEndRow()
public int getEndCol()
public int[] getPositions(java.lang.String text)
public int[] getPositions(java.lang.String[] lines)
public TransportDoc.TransportRange asTransport()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isBackwards()
public AceRange reversed()
public boolean isZeroLength()
public static AceRange fromTransport(TransportDoc.TransportRange tr)
public java.lang.String toString()
toString
in class java.lang.Object