Package org.silverpeas.core.util
Class ArrayUtil
- java.lang.Object
-
- org.silverpeas.core.util.ArrayUtil
-
public class ArrayUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T[]
add(T[] array, int index, T item)
static byte[]
addAll(byte[] array1, byte... array2)
static boolean
contains(Object[] array, Object objectToFind)
static byte[]
emptyByteArray()
static String[]
emptyStringArray()
static int
indexOf(Object[] array, Object itemToFind)
static boolean
isEmpty(byte[] array)
static boolean
isEmpty(Object[] array)
static boolean
isNotEmpty(Object[] array)
static String[]
nullToEmpty(String[] array)
static String[]
removeElement(String[] array, String element)
static byte[]
subarray(byte[] array, int startIndexInclusive, int endIndexExclusive)
-
-
-
Method Detail
-
emptyByteArray
public static byte[] emptyByteArray()
-
emptyStringArray
public static String[] emptyStringArray()
-
isEmpty
public static boolean isEmpty(byte[] array)
-
isEmpty
public static boolean isEmpty(Object[] array)
-
isNotEmpty
public static boolean isNotEmpty(Object[] array)
-
subarray
public static byte[] subarray(byte[] array, int startIndexInclusive, int endIndexExclusive)
-
addAll
public static byte[] addAll(byte[] array1, byte... array2)
-
add
public static <T> T[] add(T[] array, int index, T item)
-
-