Interface SimpleList

  • All Implemented Interfaces:
    java.lang.Iterable

    
    public interface SimpleList<T>
     implements Iterable<T>
                        

    A Simple list of items.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract int length() The number of items in the list.
      abstract T getItem(int index) The n-th element in the list, where n is the supplied index.
      • Methods inherited from class java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • length

         abstract int length()

        The number of items in the list.

      • getItem

        @NonNull() abstract T getItem(int index)

        The n-th element in the list, where n is the supplied index.

        Parameters:
        index - The index of the item to return.
        Returns:

        The item with the given index in the list.