Interface Lisque<T>

Type Parameters:
T - the generic type of items
All Superinterfaces:
Collection<T>, Deque<T>, Iterable<T>, List<T>, Queue<T>
All Known Implementing Classes:
ObjectDeque

public interface Lisque<T> extends List<T>, Deque<T>, Collection<T>
A combination List/Deque with some expanded features based on Deque's mix of exceptional and non-exceptional methods.
  • Method Details

    • add

      boolean add(T t)
      Specified by:
      add in interface Collection<T>
      Specified by:
      add in interface Deque<T>
      Specified by:
      add in interface List<T>
      Specified by:
      add in interface Queue<T>
    • add

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

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

      boolean contains(Object o)
      Specified by:
      contains in interface Collection<T>
      Specified by:
      contains in interface Deque<T>
      Specified by:
      contains in interface List<T>
    • containsAll

      boolean containsAll(Collection<?> c)
      Specified by:
      containsAll in interface Collection<T>
      Specified by:
      containsAll in interface List<T>
    • removeAll

      boolean removeAll(Collection<?> c)
      Specified by:
      removeAll in interface Collection<T>
      Specified by:
      removeAll in interface List<T>
    • retainAll

      boolean retainAll(Collection<?> c)
      Specified by:
      retainAll in interface Collection<T>
      Specified by:
      retainAll in interface List<T>
    • sort

      void sort(Comparator<? super T> c)
      Specified by:
      sort in interface List<T>
    • indexOf

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

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

      default boolean insert(int index, T item)
    • insertAll

      default boolean insertAll(int index, Collection<? extends T> c)
    • addAllLast

      default boolean addAllLast(Collection<? extends T> c)
    • addAllFirst

      boolean addAllFirst(Collection<? extends T> c)
    • addAll

      boolean addAll(T[] array)
    • addAll

      boolean addAll(T[] array, int offset, int length)
    • addAll

      boolean addAll(int index, T[] array)
    • addAll

      boolean addAll(int index, T[] array, int offset, int length)
    • insertAll

      default boolean insertAll(int index, T[] array)
    • insertAll

      default boolean insertAll(int index, T[] array, int offset, int length)
    • addAllLast

      default boolean addAllLast(T[] array)
    • addAllLast

      default boolean addAllLast(T[] array, int offset, int length)
    • addAllFirst

      boolean addAllFirst(T[] array)
    • addAllFirst

      boolean addAllFirst(T[] array, int offset, int length)
    • retainAll

      boolean retainAll(Object[] array)
    • retainAll

      boolean retainAll(Object[] array, int offset, int length)
    • truncate

      void truncate(int newSize)
    • truncateLast

      default void truncateLast(int newSize)
    • truncateFirst

      void truncateFirst(int newSize)
    • removeRange

      void removeRange(int fromIndex, int toIndex)
    • indexOf

      int indexOf(Object value, int fromIndex)
    • lastIndexOf

      int lastIndexOf(Object value, int fromIndex)
    • removeAt

      default T removeAt(int index)
    • poll

      T poll(int index)
    • pollAt

      default T pollAt(int index)
    • notEmpty

      default boolean notEmpty()
    • last

      T last()
    • peekAt

      T peekAt(int index)
    • random

      T random(Random random)
    • peekRandom

      default T peekRandom(Random random)
    • offerFirst

      default boolean offerFirst(T t)
      Specified by:
      offerFirst in interface Deque<T>
    • offerLast

      default boolean offerLast(T t)
      Specified by:
      offerLast in interface Deque<T>
    • pollFirst

      default T pollFirst()
      Specified by:
      pollFirst in interface Deque<T>
    • pollLast

      default T pollLast()
      Specified by:
      pollLast in interface Deque<T>
    • peekFirst

      default T peekFirst()
      Specified by:
      peekFirst in interface Deque<T>
    • peekLast

      default T peekLast()
      Specified by:
      peekLast in interface Deque<T>
    • removeFirstOccurrence

      default boolean removeFirstOccurrence(Object o)
      Specified by:
      removeFirstOccurrence in interface Deque<T>
    • removeLastOccurrence

      default boolean removeLastOccurrence(Object o)
      Specified by:
      removeLastOccurrence in interface Deque<T>
    • offer

      default boolean offer(T t)
      Specified by:
      offer in interface Deque<T>
      Specified by:
      offer in interface Queue<T>
    • remove

      default T remove()
      Specified by:
      remove in interface Deque<T>
      Specified by:
      remove in interface Queue<T>
    • poll

      default T poll()
      Specified by:
      poll in interface Deque<T>
      Specified by:
      poll in interface Queue<T>
    • element

      default T element()
      Specified by:
      element in interface Deque<T>
      Specified by:
      element in interface Queue<T>
    • peek

      default T peek()
      Specified by:
      peek in interface Deque<T>
      Specified by:
      peek in interface Queue<T>
    • push

      default void push(T t)
      Specified by:
      push in interface Deque<T>
    • pop

      default T pop()
      Specified by:
      pop in interface Deque<T>
    • isEmpty

      default boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<T>
      Specified by:
      isEmpty in interface List<T>
    • addFirst

      void addFirst(T t)
      Specified by:
      addFirst in interface Deque<T>
    • addLast

      void addLast(T t)
      Specified by:
      addLast in interface Deque<T>
    • getFirst

      T getFirst()
      Specified by:
      getFirst in interface Deque<T>
    • getLast

      T getLast()
      Specified by:
      getLast in interface Deque<T>
    • removeFirst

      T removeFirst()
      Specified by:
      removeFirst in interface Deque<T>
    • removeLast

      T removeLast()
      Specified by:
      removeLast in interface Deque<T>
    • reversed

      Lisque<T> reversed()
    • iterator

      Iterator<T> iterator()
      Specified by:
      iterator in interface Collection<T>
      Specified by:
      iterator in interface Deque<T>
      Specified by:
      iterator in interface Iterable<T>
      Specified by:
      iterator in interface List<T>
    • listIterator

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

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

      Iterator<T> descendingIterator()
      Specified by:
      descendingIterator in interface Deque<T>