Interface ListAdapter<L,E>


public interface ListAdapter<L,E>
An adapter for a list of elements.
Author:
Julien Viet
  • Method Summary

    Modifier and Type
    Method
    Description
    iterator(L list, boolean reverse)
    Returns an iterator over the list elements.
    int
    size(L list)
    Returns the number of list elements.
  • Method Details

    • size

      int size(L list)
      Returns the number of list elements.
      Parameters:
      list - the list
      Returns:
      the list size
    • iterator

      Iterator<E> iterator(L list, boolean reverse)
      Returns an iterator over the list elements.
      Parameters:
      list - the list
      reverse - the iteration direction
      Returns:
      the iterator