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


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

Comparator for this collection.


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

comparator - New comparator to use for sorting this collection.
JDE 4.0.2

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.