public final class IndexRange
extends java.lang.Object
IndexRange
- A simple class representing an index range.Modifier and Type | Field and Description |
---|---|
int |
end
The end index
|
static IndexRange |
NULL
The
null index range |
int |
start
The start index
|
Constructor and Description |
---|
IndexRange(int start,
int end)
Initializes a new
IndexRange |
public static final IndexRange NULL
null
index rangepublic final int start
public final int end
public IndexRange(int start, int end)
IndexRange
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getStart()
public int getEnd()
public java.lang.String toString()
toString
in class java.lang.Object