Class IDeques

java.lang.Object
org.javimmutable.collections.IDeques

public final class IDeques extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> IDeque<T>
    allOf(Iterable<? extends T> source)
    Efficiently produces a IList containing all of the values in source built atop a balanced binary tree.
    static <T> IDeque<T>
    allOf(Iterator<? extends T> source)
    Efficiently produces a IList containing all of the values in source built atop a balanced binary tree.
    static <T> IDequeBuilder<T>
    Produces a Builder for efficiently constructing an IDeque.
    static <T> IDeque<T>
    of()
    Produces an empty IList built atop a balanced binary tree.
    static <T> IDeque<T>
    of(T... values)
    Efficiently produces a IList containing all of the specified values built atop a balanced binary tree.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • of

      @Nonnull public static <T> IDeque<T> of()
      Produces an empty IList built atop a balanced binary tree.
    • of

      @Nonnull @SafeVarargs public static <T> IDeque<T> of(T... values)
      Efficiently produces a IList containing all of the specified values built atop a balanced binary tree.
    • allOf

      @Nonnull public static <T> IDeque<T> allOf(@Nonnull Iterator<? extends T> source)
      Efficiently produces a IList containing all of the values in source built atop a balanced binary tree.
    • allOf

      @Nonnull public static <T> IDeque<T> allOf(@Nonnull Iterable<? extends T> source)
      Efficiently produces a IList containing all of the values in source built atop a balanced binary tree.
    • builder

      public static <T> IDequeBuilder<T> builder()
      Produces a Builder for efficiently constructing an IDeque.