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


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

element - Element from which to extract key.
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.