Interface IAppendableList<E>

Type Parameters:
E - the type of the elements of a IAppendableList
All Known Subinterfaces:
IArrayList<E>, ILinkedList<E>
All Known Implementing Classes:
ArrayList, LinkedList

public interface IAppendableList<E>
A IAppendableList is a list that can add elements at its end.
Author:
Silvan Wyss
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAtEnd(E element)
    Adds the given element at the end of the current IAppendableList.
    void
    addAtEnd(Iterable<? extends E> elements)
    Adds the given elements at the end of the current IAppendableList.
    <T extends E>
    void
    addAtEnd(T... elements)
    Adds the given elements at the end of the current IAppendableList.
  • Method Details

    • addAtEnd

      void addAtEnd(E element)
      Adds the given element at the end of the current IAppendableList.
      Parameters:
      element -
      Throws:
      RuntimeException - if the given elements is null
    • addAtEnd

      void addAtEnd(Iterable<? extends E> elements)
      Adds the given elements at the end of the current IAppendableList. The elements will be added in the given order.
      Parameters:
      elements -
      Throws:
      RuntimeException - if the given elements is null
      RuntimeException - if one of the given elements is null
    • addAtEnd

      <T extends E> void addAtEnd(T... elements)
      Adds the given elements at the end of the current IAppendableList. The elements will be added in the given order.
      Type Parameters:
      T - the type of the given elements
      Parameters:
      elements -
      Throws:
      RuntimeException - if the given elements is null
      RuntimeException - if one of the given elements is null