net.rim.device.api.collection
Interface IntKeyProviderAdaptor


public interface IntKeyProviderAdaptor

Adaptor class that can retrieve integer keys for collections that can use them.

IntSortedReadableList collections can make use of objects implementing this interface to extract the integer keys it requires from its contained elements.

Whether this key is actually contained in the element object, or whether it is generated by the adaptor itself based on other data contained in the element, is up to the implementor.


Method Summary
 int getIntKey(Object element)
          Retrieves the integer key from specified element.
 

Method Detail

getIntKey

public int getIntKey(Object element)
Retrieves the integer key from specified element.

Parameters:
element - Element from which to extract key.
Returns:
Integer key.



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.