|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.colossus.util.ArrayHelper
public class ArrayHelper
A collection of static methods to help with using arrays of the Java language.
This is an addition to Arrays.
| Constructor Summary | |
|---|---|
ArrayHelper()
|
|
| Method Summary | ||
|---|---|---|
static
|
findFirstMatch(T[][] input,
Predicate<T> predicate)
Find the first element in the array that matches the predicate. |
|
static
|
findFirstMatch(T[] input,
Predicate<T> predicate)
Find the first element in the array that matches the predicate. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayHelper()
| Method Detail |
|---|
public static <T> T findFirstMatch(T[] input,
Predicate<T> predicate)
T - The type of element to use.input - The array of candidates to match. Not null.predicate - The match condition. Not null.
public static <T> T findFirstMatch(T[][] input,
Predicate<T> predicate)
#findFirstMatch(T[], Predicate),
iteration is right-to-left as usual in Java.
T - The type of element to use.input - The array of candidates to match. Not null.predicate - The match condition. Not null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||