|
com.Ostermiller.util Java Utilities |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.Ostermiller.util.ArrayHelper
public final class ArrayHelper
Convenience methods for working with Java arrays. More information about this class is available from ostermiller.org.
Constructor Summary | |
---|---|
ArrayHelper()
|
Method Summary | |
---|---|
static Object[] |
cat(Object[] arr1,
Object[] arr2)
Concatenates the given arrays into a single long array. |
static boolean |
equal(Object[] arr1,
Object[] arr2)
Tests two arrays to see if the arrays are equal. |
static void |
print(Object[] arr)
Prints out a comma separated list of all the objects in the array on a single line in CSV format. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayHelper()
Method Detail |
---|
public static Object[] cat(Object[] arr1, Object[] arr2)
For example it can be called like this:
String[] arr = (String[])ArrayHelper.cat(new String[]{"one","two"}, new String[]{"three","four"});
arr1
- first arrayarr2
- second array
public static void print(Object[] arr)
arr
- Array to print in comma separated value formatpublic static boolean equal(Object[] arr1, Object[] arr2)
arr1
- first arrayarr2
- second array
|
com.Ostermiller.util Java Utilities |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001-2012 by Stephen Ostermiller