Package org.eclipse.jetty.util
Class ArrayUtil
java.lang.Object
org.eclipse.jetty.util.ArrayUtil
- All Implemented Interfaces:
Serializable,Cloneable
@Deprecated(since="2021-05-27")
public class ArrayUtil
extends Object
implements Cloneable, Serializable
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Utility methods for Array manipulation
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T[]add(T[] array1, T[] array2) Deprecated.Add arraysstatic <T> T[]addToArray(T[] array, T item, Class<?> type) Deprecated.Add element to an arraystatic <E> List<E> asMutableList(E[] array) Deprecated.static <T> T[]prependToArray(T item, T[] array, Class<?> type) Deprecated.Add element to the start of an arraystatic <T> T[]removeFromArray(T[] array, Object item) Deprecated.static <T> T[]removeNulls(T[] array) Deprecated.
-
Constructor Details
-
ArrayUtil
public ArrayUtil()Deprecated.
-
-
Method Details
-
removeFromArray
Deprecated. -
add
public static <T> T[] add(T[] array1, T[] array2) Deprecated.Add arrays- Type Parameters:
T- the array entry type- Parameters:
array1- An array to add to (or null)array2- An array to add to (or null)- Returns:
- new array with contents of both arrays, or null if both arrays are null
-
addToArray
Deprecated.Add element to an array- Type Parameters:
T- the array entry type- Parameters:
array- The array to add to (or null)item- The item to addtype- The type of the array (in case of null array)- Returns:
- new array with contents of array plus item
-
prependToArray
Deprecated.Add element to the start of an array- Type Parameters:
T- the array entry type- Parameters:
item- The item to addarray- The array to add to (or null)type- The type of the array (in case of null array)- Returns:
- new array with contents of array plus item
-
asMutableList
Deprecated.- Type Parameters:
E- the array entry type- Parameters:
array- Any array of object- Returns:
- A new modifiable list initialised with the elements from
array.
-
removeNulls
public static <T> T[] removeNulls(T[] array) Deprecated.
-