Class IndexedObject

  • All Implemented Interfaces:
    Comparable<IndexedObject>

    public class IndexedObject
    extends Object
    implements Comparable<IndexedObject>

    Purpose: A helper class for sorting index/object pairs.

    Responsibilities: Allows to sort a list of index/object pairs either directly or with Collections.sort(List<IndexedObject>) - using IndexedObject.compareTo; or with Collections.sort(List<IndexedObject>, Comparator<IndexedObject>) - using custom-defined Comparator<IndexedObject>.

    See Also:
    Collections, Comparator, OrderedListContainerPolicy