Class ArrayToolkit

java.lang.Object
org.openjdk.jmc.common.collection.ArrayToolkit

public class ArrayToolkit extends Object
Various methods that work with arrays.
  • Constructor Details

    • ArrayToolkit

      public ArrayToolkit()
  • Method Details

    • 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 array
      excludeIndexes - Array indexes to remove. This list must be sorted.
      Returns:
      a new array containing values from the input array except for the excluded indexes