Class List<E>

java.lang.Object
ch.nolix.base.independent.list.List<E>
Type Parameters:
E - is the type of the elements of a List.
All Implemented Interfaces:
Iterable<E>

public final class List<E> extends Object implements Iterable<E>
Author:
Silvan Wyss
  • Method Details

    • createArrayFromList

      public static String[] createArrayFromList(List<String> list)
    • createEmpty

      public static <T> List<T> createEmpty()
    • fromArray

      public static <T> List<T> fromArray(T[] array)
    • withElements

      public static <T> List<T> withElements(Iterable<T> elements)
    • addAtBegin

      public void addAtBegin(E element)
    • addAtEnd

      public void addAtEnd(E element)
    • clear

      public void clear()
    • getCopy

      public List<E> getCopy()
    • getElementCount

      public int getElementCount()
    • getStoredFirst

      public E getStoredFirst()
    • isEmpty

      public boolean isEmpty()
    • iterator

      public Iterator<E> iterator()
      Specified by:
      iterator in interface Iterable<E>
    • removeFirst

      public void removeFirst()
    • removeFirstOccurrenceOf

      public void removeFirstOccurrenceOf(E element)
    • toByteArray

      public byte[] toByteArray(Function<E,Byte> byteMapper)