Package org.nibor.autolink.internal
Class SpanImpl
- java.lang.Object
-
- org.nibor.autolink.internal.SpanImpl
-
-
Field Summary
Fields Modifier and Type Field Description private intbeginIndexprivate intendIndex
-
Constructor Summary
Constructors Constructor Description SpanImpl(int beginIndex, int endIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBeginIndex()intgetEndIndex()java.lang.StringtoString()
-
-
-
Method Detail
-
getBeginIndex
public int getBeginIndex()
- Specified by:
getBeginIndexin interfaceSpan- Returns:
- begin index (inclusive) in the original input that this link starts at
-
getEndIndex
public int getEndIndex()
- Specified by:
getEndIndexin interfaceSpan- Returns:
- end index (exclusive) in the original input that this link ends at; in other words, index of first character after link
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-