Package com.google.gwt.view.client
Class Range
- java.lang.Object
-
- com.google.gwt.view.client.Range
-
- All Implemented Interfaces:
java.io.Serializable
public class Range extends java.lang.Object implements java.io.SerializableThe range of interest for a single handler.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Return true if this ranges's start end length are equal to those of the given object.intgetLength()Get the length of the range.intgetStart()Get the start index of the range.inthashCode()Return a hash code based on this range's start and length.java.lang.StringtoString()Returns a String representation for debugging.
-
-
-
Constructor Detail
-
Range
public Range(int start, int length)Construct a newRange.- Parameters:
start- the start indexlength- the length
-
Range
Range()
Used by RPC.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Return true if this ranges's start end length are equal to those of the given object.- Overrides:
equalsin classjava.lang.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.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns a String representation for debugging.- Overrides:
toStringin classjava.lang.Object
-
-