Class ListWithoutItemAtIndex<T>

    • Constructor Detail

      • ListWithoutItemAtIndex

        public ListWithoutItemAtIndex​(List<? extends T> list,
                                      int toExclude)
        Constructs a new list that excludes the item at the specified index from the provided list.
        Parameters:
        list - The original list from which an item will be excluded.
        toExclude - The index of the item to exclude from the list.
        Throws:
        ArrayIndexOutOfBoundsException - if the index to exclude is out of bounds.