All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ibs.util.TreeSort

java.lang.Object
   |
   +----ibs.util.TreeSort

public class TreeSort
extends Object
The TreeSort class uses a binary tree to sort lines in a file and remove duplicates. Each line is inserted into the tree and the tree is then enumerated to print each line. The keys for the tree must implement the TreeKey interface which provides a comparison method for ordering entries.


Constructor Index

 o TreeSort()

Method Index

 o main(String[])
 o sortEnum(Enumeration)
Give me an Enumeration and I will return a sorted Enumeration.

Constructors

 o TreeSort
 public TreeSort()

Methods

 o main
 public static void main(String args[])
 o sortEnum
 public Enumeration sortEnum(Enumeration enum)
Give me an Enumeration and I will return a sorted Enumeration. I PROMISE!

Parameters:
enum - An Enumeration that needs to be sorted.
Returns:
A sorted Enumeration.

All Packages  Class Hierarchy  This Package  Previous  Next  Index