Class ArrayToolkit


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

      • ArrayToolkit

        public ArrayToolkit()
    • 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 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