Class Iterables

java.lang.Object
org.midheaven.lang.Iterables

public class Iterables extends Object
Represents Iterables.
  • Constructor Details

    • Iterables

      public Iterables()
  • Method Details

    • zip

      public static <A, B> Iterables.BiCombiner<A,B> zip(Iterable<A> a, Iterable<B> b)
      Performs zip.
      Parameters:
      a - the a value
      b - the b value
      Returns:
      the result of zip
    • streamValuesOf

      public static <T extends Enum<T>> Stream<T> streamValuesOf(Class<T> enumType)
      Performs streamValuesOf.
      Parameters:
      enumType - the enumType value
      Returns:
      the result of streamValuesOf
    • stream

      public static <T> Stream<T> stream(Iterable<T> iterable)
      Performs stream.
      Parameters:
      iterable - the iterable value
      Returns:
      the result of stream
    • stream

      public static <T> Stream<T> stream(Iterator<T> iterator)
      Performs stream.
      Parameters:
      iterator - the iterator value
      Returns:
      the result of stream