|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.util.ArrayUtils
public final class ArrayUtils
Collection of useful utilities to work with arrays.
| Method Summary | |
|---|---|
static int |
contains(int[] source,
int iTarget)
Test if specified array contains given element and if it does, find its position. |
static int[] |
exclude(int[] arrBase,
int[] arrExclude)
Method to exclude 2 arrays of ints so that the result contains all elements from the first array, which are not in the second array. |
static long |
sum(int[] source)
Sum all elements in the array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int[] exclude(int[] arrBase,
int[] arrExclude)
arrBase - - base array to exclude fromarrExclude - - array to exclude from the first one
public static int contains(int[] source,
int iTarget)
source - - array to search, can be nulliTarget - - element to find
public static long sum(int[] source)
source - - array to sum elements of
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||