Package com.google.gwt.view.client
Class Range
java.lang.Object
com.google.gwt.view.client.Range
- All Implemented Interfaces:
Serializable
The range of interest for a single handler.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if this ranges's start end length are equal to those of the given object.int
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.toString()
Returns a String representation for debugging.
-
Constructor Details
-
Range
public Range(int start, int length) Construct a newRange
.- Parameters:
start
- the start indexlength
- the length
-
Range
Range()Used by RPC.
-
-
Method Details
-
equals
Return true if this ranges's start end length are equal to those of the given object. -
getLength
public int getLength()Get the length of the range.- Returns:
- the length
-
getStart
public int getStart()Get the start index of the range.- Returns:
- the start index
-
hashCode
public int hashCode()Return a hash code based on this range's start and length. -
toString
Returns a String representation for debugging.
-