Class IterableUtil

java.lang.Object
org.palladiosimulator.indirections.util.IterableUtil

public final class IterableUtil extends Object
  • Method Details

    • 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)
    • toMap

      public static <K, V> Map<K,V> toMap(Iterable<Map.Entry<K,V>> entries)