net.rim.device.api.collection
Interface LongKeyProviderAdaptor


public interface LongKeyProviderAdaptor

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

LongSortedReadableList collections can make use of objects impelmenting this interface to extract the long 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
 long getLongKey(Object element)
          Retrieves the long integer key from specified element.
 



Method Detail

getLongKey

long getLongKey(Object element)
Retrieves the long integer key from specified element.

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





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal