|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.util.ArrayUtil
public class ArrayUtil
Various methods for manipulating arrays.
Method Summary | |
---|---|
static boolean |
contains(java.lang.Object[] a,
java.lang.Object o)
Tells whether the given array contains the specified element. |
static int |
indexOf(java.lang.Object[] a,
java.lang.Object o)
Returns the index in the given array of the first occurrence of the specified element, or -1 if the array does not contain this element. |
static java.lang.String |
toString(long[] a)
Returns a string representation of the contents of the specified array. |
static java.lang.String |
toString(java.lang.Object[] a)
Returns a string representation of the contents of the specified array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String toString(java.lang.Object[] a)
Object.toString()
method inherited from Object, which describes their
identities rather than their contents.
The value returned by this method is equal to the value that would be returned by Arrays.asList(a).toString(), unless the array is null, in which case "null" is returned.
a
- the array whose string representation to return
public static java.lang.String toString(long[] a)
a
- the array whose string representation to return
public static int indexOf(java.lang.Object[] a, java.lang.Object o)
o
- element to search for.
public static boolean contains(java.lang.Object[] a, java.lang.Object o)
o
- element whose presence in the array is to be tested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |