Package org.nibor.autolink.internal
Class LinkSpanImpl
- java.lang.Object
-
- org.nibor.autolink.internal.LinkSpanImpl
-
-
Field Summary
Fields Modifier and Type Field Description private int
beginIndex
private int
endIndex
private LinkType
linkType
-
Constructor Summary
Constructors Constructor Description LinkSpanImpl(LinkType linkType, int beginIndex, int endIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBeginIndex()
int
getEndIndex()
LinkType
getType()
java.lang.String
toString()
-
-
-
Field Detail
-
linkType
private final LinkType linkType
-
beginIndex
private final int beginIndex
-
endIndex
private final int endIndex
-
-
Constructor Detail
-
LinkSpanImpl
public LinkSpanImpl(LinkType linkType, int beginIndex, int endIndex)
-
-
Method Detail
-
getType
public LinkType getType()
-
getBeginIndex
public int getBeginIndex()
- Specified by:
getBeginIndex
in interfaceSpan
- Returns:
- begin index (inclusive) in the original input that this link starts at
-
getEndIndex
public int getEndIndex()
- Specified by:
getEndIndex
in 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:
toString
in classjava.lang.Object
-
-