Package org.gvsig.utils.vectorUtilities
Class VectorUtilities
java.lang.Object
org.gvsig.utils.vectorUtilities.VectorUtilities
New functionality to work with vectors (of elements).
- Author:
- Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAlphabeticallyOrdered(Vector v, Object obj) Adds an item in alphabetical order.static voidaddAlphabeticallyOrdered(Vector v, Object obj, Comparator comp) Adds an item in alphabetical order using a comparator for compare the objects.
-
Constructor Details
-
VectorUtilities
public VectorUtilities()
-
-
Method Details
-
addAlphabeticallyOrdered
Adds an item in alphabetical order.- Parameters:
v- java.util.Vector in alphabetical order.obj- java.lang.Object
-
addAlphabeticallyOrdered
Adds an item in alphabetical order using a comparator for compare the objects. The vector must be alhabetically ordered.- Parameters:
v- java.util.Vector in alphabetical order.obj- java.lang.Objectcomp- java.util.Comparator
-