Class IterableUtils

java.lang.Object
io.jenkins.blueocean.commons.IterableUtils

public class IterableUtils extends Object
  • Method Details

    • getFirst

      public static <T> T getFirst(Iterable<? extends T> iterable, @Nullable T defaultValue)
    • getNext

      public static <T> T getNext(Iterator<? extends T> iterator, @Nullable T defaultValue)
    • find

      public static <T> T find(Iterable<? extends T> iterable, Predicate<? super T> predicate, @Nullable T defaultValue)
    • getIterable

      public static <T> Iterable<T> getIterable(Stream<T> stream)
    • size

      public static <T> int size(Iterable<? extends T> iterable)
    • chainedIterable

      public static <T> Iterable<T> chainedIterable(Iterable<? extends T> iterable1, Iterable<? extends T> iterable2)