public interface

ProvidesKey

com.google.gwt.view.client.ProvidesKey<T>
Known Indirect Subclasses

Class Overview

Implementors of ProvidesKey provide a key for list items, such that items that are to be treated as distinct (for example, for editing) have distinct keys.

The key must implement a coherent set of equals(Object) and hashCode() methods such that if objects A and B are to be treated as identical, then A.equals(B), B.equals(A), and A.hashCode() == B.hashCode(). If A and B are to be treated as unequal, then it must be the case that A.equals(B) == false and B.equals(A) == false.

Summary

Public Methods
abstract Object getKey(T item)
Get the key for a list item.

Public Methods

public abstract Object getKey (T item)

Get the key for a list item.

Parameters
item the list item
Returns
  • the key that represents the item