Interface IAppendableList<E>

Type Parameters:
E - the type of the elements of a IAppendableList
All Superinterfaces:
AggregationRequestable<E>, BaseCountRequestable, CountRequestable<E>, EmptinessRequestable, ExtendedIterable<E>, Iterable<E>, IterableArrayProvider<E>, IterableByExtremumProvider<E>, IterableByIndexProvider<E>, IterableContainAnyRequestable, IterableContainEqualRequestable<E>, IterableContainMatchingRequestable<E>, IterableContainMultipleRequestable, IterableContainObjectRequestable, IterableFilterProvider<E>, IterableFilterViewProvider<E>, IterableFirstProvider<E>, IterableGroupProvider<E>, IterableIntervalViewProvider<E>, IterableLastProvider<E>, IterableMappedProvider<E>, IterableMappedViewProvider<E>, IterableOneBasedIndexRequestable<E>, IterableOrderProvider<E>, IterableStringProvider, IterableWithCopyableIterator<E>, MaterializationRequestable, SingleProvider<E>
All Known Subinterfaces:
IArrayList<E>, ILinkedList<E>
All Known Implementing Classes:
ArrayList, LinkedList

public interface IAppendableList<E> extends ExtendedIterable<E>
A IAppendableList is a list that can add elements at its end.
Author:
Silvan Wyss
  • 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