@Internal public abstract class PropertyNode<T extends PropertyNode<T>> extends Object implements Comparable<T>, Duplicatable
BytePropertyNode between you and this.| Modifier and Type | Field and Description |
|---|---|
protected Object |
_buf |
static Comparator<PropertyNode<?>> |
EndComparator |
static Comparator<PropertyNode<?>> |
StartComparator |
| Modifier | Constructor and Description |
|---|---|
protected |
PropertyNode(int fcStart,
int fcEnd,
Object buf) |
protected |
PropertyNode(PropertyNode<T> other) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustForDelete(int start,
int length)
Adjust for a deletion that can span multiple PropertyNodes.
|
int |
compareTo(T o)
Used for sorting in collections.
|
abstract PropertyNode<?> |
copy() |
boolean |
equals(Object o) |
int |
getEnd() |
int |
getStart() |
int |
hashCode() |
protected boolean |
limitsAreEqual(Object o) |
void |
setEnd(int end) |
void |
setStart(int start) |
public static final Comparator<PropertyNode<?>> EndComparator
public static final Comparator<PropertyNode<?>> StartComparator
protected Object _buf
protected PropertyNode(PropertyNode<T> other)
protected PropertyNode(int fcStart,
int fcEnd,
Object buf)
fcStart - The start of the text for this property, in characters.fcEnd - The end of the text for this property, in characters.buf - FIXME: Old documentation is: "grpprl The property description in compressed form."public int getStart()
public void setStart(int start)
public int getEnd()
public void setEnd(int end)
public void adjustForDelete(int start,
int length)
protected boolean limitsAreEqual(Object o)
public abstract PropertyNode<?> copy()
copy in interface Duplicatablepublic int compareTo(T o)
compareTo in interface Comparable<T extends PropertyNode<T>>