public final class DefaultTextSpan extends java.lang.Object implements TextSpan
String.hashCode()
iterates over the internal character array of a new string (new(..), .substring(..), .lowercase(..), ...).Modifier and Type | Field and Description |
---|---|
private int |
_end |
private int |
_hashCode |
private int |
_start |
Constructor and Description |
---|
DefaultTextSpan(int start,
int end)
Given span indices should be ordered start < end, but it is not an absolute requirement.
|
private final int _start
private final int _end
private final int _hashCode
public DefaultTextSpan(int start, int end)
start
- start index of a span, be it of a string or otherend
- end index of a span, be it of a string or otherpublic int getStart()
public int getEnd()
public int getLength()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object