java.lang.Object
org.apache.jackrabbit.oak.commons.collections.DequeUtils

public class DequeUtils extends Object
Utility methods for Deque conversions.
  • Method Details

    • toArrayDeque

      public static <T> ArrayDeque<T> toArrayDeque(@NotNull @NotNull Iterable<? extends T> iterable)
      Convert an iterable to a ArrayDeque. The returning array deque is mutable and supports all optional operations.
      Type Parameters:
      T - the type of the elements
      Parameters:
      iterable - the iterable to convert
      Returns:
      the arrayDeque