Class ListWrapper<T>

java.lang.Object
jadex.collection.CollectionWrapper<T>
jadex.collection.ListWrapper<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, SequencedCollection<T>

public abstract class ListWrapper<T> extends CollectionWrapper<T> implements List<T>
  • Constructor Details

    • ListWrapper

      public ListWrapper(List<T> delegate)
      Create a new wrapper.
      Parameters:
      delegate - The delegate.
  • Method Details

    • getList

      public List<T> getList()
    • addAll

      public boolean addAll(int index, Collection<? extends T> c)
      Specified by:
      addAll in interface List<T>
    • get

      public T get(int index)
      Specified by:
      get in interface List<T>
    • set

      public T set(int index, T element)
      Specified by:
      set in interface List<T>
    • add

      public void add(int index, T element)
      Specified by:
      add in interface List<T>
    • remove

      public T remove(int index)
      Specified by:
      remove in interface List<T>
    • indexOf

      public int indexOf(Object o)
      Specified by:
      indexOf in interface List<T>
    • lastIndexOf

      public int lastIndexOf(Object o)
      Specified by:
      lastIndexOf in interface List<T>
    • listIterator

      public ListIterator<T> listIterator()
      Specified by:
      listIterator in interface List<T>
    • listIterator

      public ListIterator<T> listIterator(int index)
      Specified by:
      listIterator in interface List<T>
    • subList

      public List<T> subList(int fromIndex, int toIndex)
      Specified by:
      subList in interface List<T>