Class ArrayToolkit
- java.lang.Object
-
- org.openjdk.jmc.common.collection.ArrayToolkit
-
public class ArrayToolkit extends Object
Various methods that work with arrays.
-
-
Constructor Summary
Constructors Constructor Description ArrayToolkit()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T[]
filter(T[] items, List<Integer> excludeIndexes)
Filter specified indexes from an array.
-
-
-
Method Detail
-
filter
public static <T> T[] filter(T[] items, List<Integer> excludeIndexes)
Filter specified indexes from an array.- Type Parameters:
T
- input array type- Parameters:
items
- input arrayexcludeIndexes
- Array indexes to remove. This list must be sorted.- Returns:
- a new array containing values from the input array except for the excluded indexes
-
-