@Internal public abstract class PropertyNode<T extends PropertyNode<T>> extends java.lang.Object implements java.lang.Comparable<T>, Duplicatable
BytePropertyNode
between you and this.Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
_buf |
static java.util.Comparator<PropertyNode<?>> |
EndComparator |
static java.util.Comparator<PropertyNode<?>> |
StartComparator |
Modifier | Constructor and Description |
---|---|
protected |
PropertyNode(int fcStart,
int fcEnd,
java.lang.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(java.lang.Object o) |
int |
getEnd() |
int |
getStart() |
int |
hashCode() |
protected boolean |
limitsAreEqual(java.lang.Object o) |
void |
setEnd(int end) |
void |
setStart(int start) |
public static final java.util.Comparator<PropertyNode<?>> EndComparator
public static final java.util.Comparator<PropertyNode<?>> StartComparator
protected java.lang.Object _buf
protected PropertyNode(PropertyNode<T> other)
protected PropertyNode(int fcStart, int fcEnd, java.lang.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(java.lang.Object o)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public abstract PropertyNode<?> copy()
copy
in interface Duplicatable
public int compareTo(T o)
compareTo
in interface java.lang.Comparable<T extends PropertyNode<T>>
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.