Class IterableUtil
- java.lang.Object
-
- org.palladiosimulator.indirections.util.IterableUtil
-
public final class IterableUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A extends Iterable<?>>
AclaimAtLeastOne(A iterable)
static <A extends Iterable<T>,T>
TclaimEqual(A iterable)
static <A extends Iterable<T>,T,R>
RclaimEqualKey(A iterable, Function<T,R> keyFunction)
static <A extends Iterable<T>,T>
TclaimOne(A iterable)
static <U,T extends U>
Collection<T>claimType(Collection<U> collection, Class<? extends T> claimedElementType)
static <T> Stream<T>
stream(Iterable<T> iterable)
static <T> EList<T>
toEList(Iterable<T> iterable)
static <K,V>
Map<K,V>toMap(Iterable<Map.Entry<K,V>> entries)
-
-
-
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)
-
-