net.rim.device.api.collection
Class LongKeyProviderAdaptorComparator

java.lang.Object
  |
  +--net.rim.device.api.collection.LongKeyProviderAdaptorComparator
All Implemented Interfaces:
Comparator

public class LongKeyProviderAdaptorComparator
extends Object
implements Comparator

Comparator that uses long keys provided by a LongKeyProviderAdaptor to order items.

Since:
JDE 4.0.0

Constructor Summary
LongKeyProviderAdaptorComparator(LongKeyProviderAdaptor longKeyProviderAdaptor)
          Constructor.
 
Method Summary
 int compare(Object o1, Object o2)
          Compares two arguments for order.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.rim.device.api.util.Comparator
equals
 

Constructor Detail

LongKeyProviderAdaptorComparator

public LongKeyProviderAdaptorComparator(LongKeyProviderAdaptor longKeyProviderAdaptor)
Constructor.
Parameters:
longKeyProviderAdaptor - The adaptor to use to retrieve the long keys.
Since:
JDE 4.0.0
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Description copied from interface: Comparator
Compares two arguments for order.

Since:
JDE 4.0.2
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright 1999-2004 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.