Class IterableUtil


  • public final class IterableUtil
    extends Object
    • Method Detail

      • claimAtLeastOne

        public static final <A extends Iterable<?>> A claimAtLeastOne​(A iterable)
      • claimEqual

        public static final <A extends Iterable<T>,​T> T claimEqual​(A iterable)
      • claimEqualKey

        public static final <A extends Iterable<T>,​T,​R> R claimEqualKey​(A iterable,
                                                                                    Function<T,​R> keyFunction)
      • claimOne

        public static final <A extends Iterable<T>,​T> T claimOne​(A iterable)
      • claimType

        public static <U,​T extends U> Collection<T> claimType​(Collection<U> collection,
                                                                    Class<? extends T> claimedElementType)
      • stream

        public static <T> Stream<T> stream​(Iterable<T> iterable)
      • toEList

        public static <T> EList<T> toEList​(Iterable<T> iterable)