|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbandy.util.CollectionsUtil
public class CollectionsUtil
The CollectionsUtil class provides some helper methods for the
java.util.Vector class.
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
| Constructor Summary | |
|---|---|
CollectionsUtil()
|
|
| Method Summary | |
|---|---|
static void |
copy(java.util.Vector in,
java.util.Vector out)
Copies the content of Vector in to the Vector out. |
static java.util.Vector |
reverseOrder(java.util.Vector in)
Reverses the order of the elements in the vector. |
static boolean |
vectorContainsString(java.util.Vector vector,
java.lang.String lookupString)
This method can be used to check the vector for existence of a certain String. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionsUtil()
| Method Detail |
|---|
public static java.util.Vector reverseOrder(java.util.Vector in)
in - Vector to reverse.
public static boolean vectorContainsString(java.util.Vector vector,
java.lang.String lookupString)
vector - The vector to sift through.lookupString - The String to look after.
public static void copy(java.util.Vector in,
java.util.Vector out)
in - The vector to copy fromout - The vector to copy to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||