Class Range

java.lang.Object
com.google.gwt.view.client.Range
All Implemented Interfaces:
Serializable

public class Range extends Object implements Serializable
The range of interest for a single handler.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Used by RPC.
    Range(int start, int length)
    Construct a new Range.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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
    Get the start index of the range.
    int
    Return a hash code based on this range's start and length.
    Returns a String representation for debugging.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Range

      public Range(int start, int length)
      Construct a new Range.
      Parameters:
      start - the start index
      length - the length
    • Range

      Range()
      Used by RPC.
  • Method Details

    • equals

      public boolean equals(Object o)
      Return true if this ranges's start end length are equal to those of the given object.
      Overrides:
      equals in class 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:
      hashCode in class Object
    • toString

      public String toString()
      Returns a String representation for debugging.
      Overrides:
      toString in class Object