@Immutable public final class DefaultTextSpan extends Object implements TextSpan
String.hashCode()
iterates over the internal character array of a new string (new(..), .substring(..), .lowercase(..), ...).Constructor and Description |
---|
DefaultTextSpan(int start,
int end)
Given span indices should be ordered start < end, but it is not an absolute requirement.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
getEnd() |
int |
getLength() |
int |
getStart() |
int |
hashCode() |
String |
toString() |
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()
public boolean equals(Object object)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.