Package com.gengoai.collection.tree
Class SimpleSpan
- java.lang.Object
-
- com.gengoai.collection.tree.SimpleSpan
-
- All Implemented Interfaces:
Span
,Serializable
,Comparable<Span>
public class SimpleSpan extends Object implements Span
The type Simple span.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SimpleSpan(int start, int end)
Instantiates a new Simple span.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
end()
The ending offsetboolean
equals(Object o)
int
hashCode()
int
length()
The length of the spanprotected void
setEnd(int end)
Sets end.protected void
setStart(int start)
Sets start.int
start()
The starting offset
-
-
-
Method Detail
-
end
public int end()
Description copied from interface:Span
The ending offset
-
length
public int length()
Description copied from interface:Span
The length of the span
-
setEnd
protected void setEnd(int end)
Sets end.- Parameters:
end
- the end
-
setStart
protected void setStart(int start)
Sets start.- Parameters:
start
- the start
-
-