|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.structure.array.ArrayUtils
public class ArrayUtils
Helper methods for arrays.
CollectionUtils| Constructor Summary | |
|---|---|
ArrayUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
convertArray(FROM[] arrayFrom,
TO[] arrayTo,
CollectionUtils.ElementConverter<FROM,TO> elementConverter)
Converts a given array into a new array with a new element type. |
|
static
|
convertArrayExcludingNullElements(FROM[] arrayFrom,
TO[] arrayTo,
CollectionUtils.ElementConverter<FROM,TO> elementConverter)
Converts a given array into a new list with a new element type, whereby all elements which convert to null will be excluded in the target list. |
|
static String[] |
trimStringArrayTokens(String[] stringArray)
Returns a new array with all tokens of the given string array being trimmed |
|
| 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 <TO,FROM> TO[] convertArray(FROM[] arrayFrom,
TO[] arrayTo,
CollectionUtils.ElementConverter<FROM,TO> elementConverter)
arrayFrom - arrayTo - : instance of the array later returned. Use the return value to set this list. The array will not be necessarily
changed only by the call as parameter.elementConverter -
public static <TO,FROM> TO[] convertArrayExcludingNullElements(FROM[] arrayFrom,
TO[] arrayTo,
CollectionUtils.ElementConverter<FROM,TO> elementConverter)
listFrom - elementConverter -
public static String[] trimStringArrayTokens(String[] stringArray)
stringArray -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||