public class Range
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Range()
Used by RPC.
|
Range(int start,
int length)
Construct a new
Range . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Return true if this ranges's start end length are equal to those of
the given object.
|
int |
getLength()
Get the length of the range.
|
int |
getStart()
Get the start index of the range.
|
int |
hashCode()
Return a hash code based on this range's start and length.
|
java.lang.String |
toString()
Returns a String representation for debugging.
|
public Range(int start, int length)
Range
.start
- the start indexlength
- the lengthRange()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int getLength()
public int getStart()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object