public class Range extends Object implements Serializable
Constructor and Description |
---|
Range(int start,
int length)
Construct a new
Range . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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.
|
String |
toString()
Returns a String representation for debugging.
|
public Range(int start, int length)
Range
.start
- the start indexlength
- the lengthpublic boolean equals(Object o)
public int getLength()
public int getStart()
public int hashCode()
Copyright © 2018. All rights reserved.