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.
-
TreeSort()
-
-
main(String[])
-
-
sortEnum(Enumeration)
- Give me an Enumeration and I will return a sorted Enumeration.
TreeSort
public TreeSort()
main
public static void main(String args[])
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