|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ebasetech.ufs.utility.CollectionUtil
class for static handy colleciton methods
Constructor Summary | |
CollectionUtil()
|
Method Summary | |
static void |
addArrayToArrayList(java.lang.Object[] array,
java.util.ArrayList arrayList)
I don't understand why this function is not in java.util.Collections. |
static int[] |
findFirstCommonElement(java.util.List one,
java.util.List two)
find the first element that is in both lists. |
static int[] |
findLastCommonElement(java.util.List one,
java.util.List two)
find the last element that is in both lists. |
static java.lang.String |
getValueFromMap_upperORlower(java.util.Map map,
java.lang.String string)
I've seen this so many times. |
static boolean |
isEmptyOrNull(java.lang.Object[] array)
see if an array has zero length or is set null |
static boolean |
isValidIndex(java.lang.Object[] array,
int index)
|
static java.lang.Object[] |
makeArrayFromList(java.util.List list)
|
static java.util.ArrayList |
makeArraylistFromArray(java.lang.Object[] array)
I don't understand why this function is not in java.util.Collections. |
static java.lang.Integer[] |
makeIntegerArray(int[] ints)
make an Integer array out of an int array |
static java.util.Vector |
makeVectorFromArray(java.lang.Object[] array)
I don't understand why this function is not in java.util.Collections. |
static boolean |
mapContainsString_upperORlower(java.util.Map map,
java.lang.String string)
I've seen this so many times. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CollectionUtil()
Method Detail |
public static boolean mapContainsString_upperORlower(java.util.Map map, java.lang.String string)
map
- the map to look instring
- the string to look for
public static java.lang.String getValueFromMap_upperORlower(java.util.Map map, java.lang.String string)
map
- the map to look instring
- the string to look for
public static java.util.ArrayList makeArraylistFromArray(java.lang.Object[] array)
array
- the array to copy
public static void addArrayToArrayList(java.lang.Object[] array, java.util.ArrayList arrayList)
array
- the array to add to arrayListarrayList
- the ArrayList to be added topublic static java.util.Vector makeVectorFromArray(java.lang.Object[] array)
array
- the array to copy
public static java.lang.Object[] makeArrayFromList(java.util.List list)
public static boolean isEmptyOrNull(java.lang.Object[] array)
public static boolean isValidIndex(java.lang.Object[] array, int index)
public static java.lang.Integer[] makeIntegerArray(int[] ints)
public static int[] findFirstCommonElement(java.util.List one, java.util.List two)
public static int[] findLastCommonElement(java.util.List one, java.util.List two)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |