Class ImmutableList<E>

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

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

    • createEmptyList

      public static <T> ImmutableList<T> createEmptyList()
    • withElement

      public static <T> ImmutableList<T> withElement(T element, T... elements)
    • withElements

      public static <T> ImmutableList<T> withElements(T[] array)
    • iterator

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