Class SpanImplBase
- java.lang.Object
-
- de.julielab.java.utilities.spanutils.SpanImplBase
-
- All Implemented Interfaces:
Span
public class SpanImplBase extends Object implements Span
This helper class represents a span of offsets, for example for the coverage of a specific streak of characters in a text. It is mainly supposed to serve as an extension point for classes that carry more information associated with the span, such as text annotations.
-
-
Constructor Summary
Constructors Constructor Description SpanImplBase(org.apache.commons.lang3.Range<Integer> offsets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBegin()intgetEnd()org.apache.commons.lang3.Range<Integer>getOffsets()voidsetBegin(int begin)voidsetEnd(int end)voidsetOffsets(org.apache.commons.lang3.Range<Integer> offsets)
-
-
-
Field Detail
-
offsets
protected org.apache.commons.lang3.Range<Integer> offsets
-
-
Constructor Detail
-
SpanImplBase
public SpanImplBase(org.apache.commons.lang3.Range<Integer> offsets)
-
-
Method Detail
-
getOffsets
public org.apache.commons.lang3.Range<Integer> getOffsets()
- Specified by:
getOffsetsin interfaceSpan
-
setOffsets
public void setOffsets(org.apache.commons.lang3.Range<Integer> offsets)
-
setBegin
public void setBegin(int begin)
-
setEnd
public void setEnd(int end)
-
-