Top Fields Constructors Methods
org.nibor.autolink.internal

public Class SpanImpl

extends Object
implements Span
Class Inheritance
All Implemented Interfaces
org.nibor.autolink.Span
Imports
org.nibor.autolink.Span

Field Summary

Modifier and TypeField and Description
private final int
private final int

Constructor Summary

AccessConstructor and Description
public
SpanImpl(int beginIndex, int endIndex)

Method Summary

Modifier and TypeMethod and Description
public int
public int
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

beginIndexback to summary
private final int beginIndex
endIndexback to summary
private final int endIndex

Constructor Detail

SpanImplback to summary
public SpanImpl(int beginIndex, int endIndex)

Method Detail

getBeginIndexback to summary
public int getBeginIndex()

Implements org.nibor.autolink.Span.getBeginIndex.

Returns:int

Doc from org.nibor.autolink.Span.getBeginIndex.

begin index (inclusive) in the original input that this link starts at

Annotations
@Override
getEndIndexback to summary
public int getEndIndex()

Implements org.nibor.autolink.Span.getEndIndex.

Returns:int

Doc from org.nibor.autolink.Span.getEndIndex.

end index (exclusive) in the original input that this link ends at; in other words, index of first character after link

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override