    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface sdsu.util.SortedCollection

public interface SortedCollection
extends OrderedCollection

A List object is a vector that can convert itself to a string and "recreate" itself from that string. The original List object can contain any objects, but the recreated List object will only contain string representations of the original elements in the list. In a List object string representation (Losr) the list elements are separated by a separatorChar, which defaults to ',', but can be changed. If the string representation of a list element contains a special character it is quoted. Special characters include separatorChar, a comment character, and white space characters. See sdsu.util.TokenCharacters for default values. White space and comments can be added to a Losr for readability. Comments start with a comment character and continue upto and include the next '\n' character.

Author:
  Roger Whitney (whitney@cs.sdsu.edu)
See Also:
  List

##

addElements(SortedCollection)
getComparer()
  Returns the comparer object used to order list.
resort(Comparer)

##

getComparer

     public abstract Comparer getComparer()

  Returns the comparer object used to order list.

addElements

     public abstract void addElements(SortedCollection elements)

resort

     public abstract void resort(Comparer newOrder)

    All Packages  Class Hierarchy  This Package  Previous  Next  Index