net.rim.device.api.collection
Interface SortableCollection

All Known Implementing Classes:
BigSortedReadableList, SortedReadableList

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

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

Returns:
Comparator for this collection.

setComparator

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-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.