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

public 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-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.