|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.common.ArrayUtils
com.vignette.portal.util.ArrayUtils.
Utility class providing a set of static methods to manipulate arrays.
| Constructor Summary | |
ArrayUtils()
Deprecated. |
|
| Method Summary | |
static boolean[] |
addElement(boolean[] array,
boolean value)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static boolean[] |
addElement(boolean[] array,
boolean value,
int position)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static int[] |
addElement(int[] array,
int value)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Replaced with ArrayUtils.addElement(int[],int) |
static int[] |
addElement(int[] array,
int value,
int position)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Replaced with ArrayUtils.addElement(int[],int,int) |
static String[] |
addElement(String[] array,
String value)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Replaced with ArrayUtils.addElement(String[],String). |
static String[] |
addElement(String[] array,
String value,
int position)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static boolean |
arraysAreEqual(int[] a,
int[] b)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static int |
binarySearch(int[] array,
int value)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Use binarySearch methods in Arrays. |
static boolean |
contains(int[] array,
int value)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Replaced with ArrayUtils.contains(int[],int) |
static boolean |
contains(Object[] array,
Object value)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Replaced with ArrayUtils.contains(Object[],Object) |
static Object[] |
getSubrange(Object[] array,
int start,
int end)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Use System.arraycopy(Object,int,Object,int,int). |
static Vector |
getVector(Object[] array)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static boolean[] |
initializeArray(boolean[] array,
boolean initialValue)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Use Arrays.fill(boolean[], boolean). |
static int[] |
initializeArray(int[] array,
int initialValue)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Use Arrays.fill(int[],int). |
static int[] |
insertAndSort(int[] array,
int value)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static int[] |
insertionSort(int[] a)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static int[] |
intersectedArray(int[] a,
int[] b)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Replaced with ArrayUtils.intersectedArray(int[],int[]). |
static boolean |
intersects(int[] a,
int[] b)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Replaced with ArrayUtils.intersects(int[],int[]). |
static boolean |
intersects(int a,
int[] b)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static boolean |
isEmpty(boolean[] array)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static boolean |
isEmpty(int[] array)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Replace with ArrayUtils.isEmpty(int[]). |
static boolean |
isEmpty(Object[] array)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Replace with ArrayUtils.isEmpty(Object[]). |
static boolean[] |
removeElementAt(boolean[] array,
int index)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static int[] |
removeElementAt(int[] array,
int index)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static int[] |
removeElementsOfValue(int[] array,
int value)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static String[] |
removeElementsOfValue(String[] array,
String value)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static int[] |
removeLastElement(int[] array)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static int[] |
removeValue(int[] array,
int value)
Deprecated. As of version 4.5. To be removed in 8.0 or later. No replacement. |
static int[] |
setToIntArray(Set set)
Deprecated. As of version 4.5. To be removed in 8.0 or later. Replaced with ArrayUtils.setToIntArray(Set). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArrayUtils()
| Method Detail |
public static boolean contains(int[] array,
int value)
ArrayUtils.contains(int[],int)
array - Name of the integer arrayvalue - Array element to test for
public static boolean contains(Object[] array,
Object value)
ArrayUtils.contains(Object[],Object)
array - Name of the Object arrayvalue - Array element to test for
public static int[] addElement(int[] array,
int value)
ArrayUtils.addElement(int[],int)
array - Name of the integer arrayvalue - Element to be added to the array
public static int[] addElement(int[] array,
int value,
int position)
ArrayUtils.addElement(int[],int,int)
array - Name of the integer arrayvalue - Element to be added to the arrayposition - New element's index
public static boolean[] addElement(boolean[] array,
boolean value)
array - Name of the boolean arrayvalue - Element to be added to the array
public static boolean[] addElement(boolean[] array,
boolean value,
int position)
array - Name of the boolean arrayvalue - Element to be added to the arrayposition - New element's index
public static String[] addElement(String[] array,
String value)
ArrayUtils.addElement(String[],String).
array - Name of the String arrayvalue - Element to be added to the array
public static String[] addElement(String[] array,
String value,
int position)
array - Name of the String arrayvalue - Element to be added to the arrayposition - New element's indexpublic static int[] removeLastElement(int[] array)
array - Name of the integer array
public static int[] removeElementAt(int[] array,
int index)
array - the array to be modifiedindex - the index of the element to be removed
public static boolean[] removeElementAt(boolean[] array,
int index)
array - the array to be modifiedindex - the index of the element to be removed
public static int[] removeElementsOfValue(int[] array,
int value)
array - Name of the integer arrayvalue - Element(s) to be removed from the array
public static String[] removeElementsOfValue(String[] array,
String value)
array - Name of the integer arrayvalue - Element(s) to be removed from the array
public static Object[] getSubrange(Object[] array,
int start,
int end)
System.arraycopy(Object,int,Object,int,int).
array - Name of the Object arraystart - First element to be copied (starting the count from 0)end - Last element to be copied (starting the count from 0)public static boolean isEmpty(Object[] array)
ArrayUtils.isEmpty(Object[]).
array - Name of the Object arraypublic static boolean isEmpty(int[] array)
ArrayUtils.isEmpty(int[]).
array - Name of the integer arraypublic static boolean isEmpty(boolean[] array)
array - Name of the boolean array
public static boolean arraysAreEqual(int[] a,
int[] b)
a - Name of the first integer arrayb - Name of the second integer arraypublic static Vector getVector(Object[] array)
array - Name of the Object array
public static int[] insertAndSort(int[] array,
int value)
array - Name of the integer arrayvalue - Element to be inserted into the array
public static int[] removeValue(int[] array,
int value)
array - Name of the integer arrayvalue - Element to be removed from the array
public static int binarySearch(int[] array,
int value)
Arrays.
array - Name of the integer arrayvalue - Element to be searched for
public static boolean intersects(int[] a,
int[] b)
ArrayUtils.intersects(int[],int[]).
a - First integer arrayb - Second integer array
public static int[] intersectedArray(int[] a,
int[] b)
ArrayUtils.intersectedArray(int[],int[]).
a - First integer arrayb - Second integer array
public static boolean intersects(int a,
int[] b)
a - Integer to be matchedb - Integer array to be searchedpublic static int[] insertionSort(int[] a)
a - Integer array to be sortedpublic static int[] setToIntArray(Set set)
ArrayUtils.setToIntArray(Set).
public static boolean[] initializeArray(boolean[] array,
boolean initialValue)
Arrays.fill(boolean[], boolean).
array - The boolean array to be initializedinitialValue - The value to assign to each element of the input array.
public static int[] initializeArray(int[] array,
int initialValue)
Arrays.fill(int[],int).
array - The int array to be initializedinitialValue - The value to assign to each element of the input array
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||