public class VectorSorter extends Object
| Constructor and Description |
|---|
VectorSorter()
A default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
lt(Object a,
Object b)
Compare two objects.
|
void |
sort(Vector v)
Sort the given vector.
|
public void sort(Vector v)
v - a vector to be sortedprotected boolean lt(Object a, Object b)
By default this method works for Strings. It is meant to be overwritten for other objects.
a - the first object to be comparedb - the second object to be comparedCopyright © 2015. All Rights Reserved.