Class ForwardingList<T>

java.lang.Object
com.tngtech.archunit.base.ForwardingCollection<T>
com.tngtech.archunit.base.ForwardingList<T>
All Implemented Interfaces:
java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>
Direct Known Subclasses:
FailureMessages

@PublicAPI(usage=ACCESS)
public abstract class ForwardingList<T>
extends ForwardingCollection<T>
implements java.util.List<T>
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected ForwardingList()  
  • Method Summary

    Modifier and Type Method Description
    void add​(int index, T element)  
    boolean addAll​(int index, java.util.Collection<? extends T> c)  
    protected abstract java.util.List<T> delegate()  
    T get​(int index)  
    int indexOf​(java.lang.Object o)  
    int lastIndexOf​(java.lang.Object o)  
    java.util.ListIterator<T> listIterator()  
    java.util.ListIterator<T> listIterator​(int index)  
    T remove​(int index)  
    T set​(int index, T element)  
    java.util.List<T> subList​(int fromIndex, int toIndex)  

    Methods inherited from class com.tngtech.archunit.base.ForwardingCollection

    add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface java.lang.Iterable

    forEach

    Methods inherited from interface java.util.List

    add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
  • Constructor Details

    • ForwardingList

      protected ForwardingList()
  • Method Details

    • delegate

      protected abstract java.util.List<T> delegate()
      Specified by:
      delegate in class ForwardingCollection<T>
    • addAll

      @PublicAPI(usage=ACCESS) public boolean addAll​(int index, java.util.Collection<? extends T> c)
      Specified by:
      addAll in interface java.util.List<T>
    • get

      @PublicAPI(usage=ACCESS) public T get​(int index)
      Specified by:
      get in interface java.util.List<T>
    • set

      @PublicAPI(usage=ACCESS) public T set​(int index, T element)
      Specified by:
      set in interface java.util.List<T>
    • add

      @PublicAPI(usage=ACCESS) public void add​(int index, T element)
      Specified by:
      add in interface java.util.List<T>
    • remove

      @PublicAPI(usage=ACCESS) public T remove​(int index)
      Specified by:
      remove in interface java.util.List<T>
    • indexOf

      @PublicAPI(usage=ACCESS) public int indexOf​(java.lang.Object o)
      Specified by:
      indexOf in interface java.util.List<T>
    • lastIndexOf

      @PublicAPI(usage=ACCESS) public int lastIndexOf​(java.lang.Object o)
      Specified by:
      lastIndexOf in interface java.util.List<T>
    • listIterator

      @PublicAPI(usage=ACCESS) public java.util.ListIterator<T> listIterator()
      Specified by:
      listIterator in interface java.util.List<T>
    • listIterator

      @PublicAPI(usage=ACCESS) public java.util.ListIterator<T> listIterator​(int index)
      Specified by:
      listIterator in interface java.util.List<T>
    • subList

      @PublicAPI(usage=ACCESS) public java.util.List<T> subList​(int fromIndex, int toIndex)
      Specified by:
      subList in interface java.util.List<T>