public class VectorUtilities extends Object
Constructor and Description |
---|
VectorUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
addAlphabeticallyOrdered(Vector v,
Object obj)
Adds an item in alphabetical order.
|
static void |
addAlphabeticallyOrdered(Vector v,
Object obj,
Comparator comp)
Adds an item in alphabetical order using a comparator for compare the objects.
|
public static void addAlphabeticallyOrdered(Vector v, Object obj)
v
- java.util.Vector in alphabetical order.obj
- java.lang.Objectpublic static void addAlphabeticallyOrdered(Vector v, Object obj, Comparator comp)
v
- java.util.Vector in alphabetical order.obj
- java.lang.Objectcomp
- java.util.Comparator