net.rim.device.api.collection
Interface SortableCollection

All Known Implementing Classes:
SortedReadableList, BigSortedReadableList

public interface SortableCollection

Defines means for collection to register a comparator object for use in sorting its elements.


Method Summary
 Comparator getComparator()
          Retrieves this collection's comparator object.
 void setComparator(Comparator comparator)
          Sets this collection's comparator, and resorts this collection.
 

Method Detail

getComparator

public Comparator getComparator()
Retrieves this collection's comparator object.

Returns:
Comparator for this collection.

setComparator

public void setComparator(Comparator comparator)
Sets this collection's comparator, and resorts this collection.

Parameters:
comparator - New comparator to use for sorting this collection.



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.