public class ArrayUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String[] |
toLowerCaseStringArray(Object[] input)
Convert
input array into an array of strings by calling Object.toString() and String.toLowerCase() methods on each array element. |
static String[] |
toStringArray(Object[] input)
Convert
input array into an array of strings by calling Object.toString() method on each
array element. |
static <F,T> T[] |
transformArray(F[] input,
Function<F,T> transformer,
Class<T> targetClass)
Convert
input array of type F into an output array of type T using the transformer
function. |
public static String[] toLowerCaseStringArray(Object[] input)
input array into an array of strings by calling Object.toString() and String.toLowerCase() methods on each array element.input - input arraypublic static String[] toStringArray(Object[] input)
input array into an array of strings by calling Object.toString() method on each
array element.input - input arraypublic static <F,T> T[] transformArray(F[] input,
Function<F,T> transformer,
Class<T> targetClass)
input array of type F into an output array of type T using the transformer
function.F - from typeT - to typeinput - input arraytransformer - conversiontargetClass - type of the target arrayCopyright © 2024 OpenClover.org. All rights reserved.