public class

Range

extends Object
implements Serializable
java.lang.Object
   ↳ com.google.gwt.view.client.Range

Class Overview

The range of interest for a single handler.

Summary

Public Constructors
Range(int start, int length)
Construct a new Range.
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Range (int start, int length)

Construct a new Range.

Parameters
start the start index
length the length

Public Methods

public boolean equals (Object o)

Return true if this ranges's start end length are equal to those of the given object.

public int getLength ()

Get the length of the range.

Returns
  • the length

public int getStart ()

Get the start index of the range.

Returns
  • the start index

public int hashCode ()

Return a hash code based on this range's start and length.

public String toString ()

Returns a String representation for debugging.