Package org.spockframework.util
Class CollectionUtil
java.lang.Object
org.spockframework.util.CollectionUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidaddLastElement(List<T> list, T element) static <T> Set<T>asSet(T[] values) static <T> Iterable<T>static <T> Iterable<T>static booleancontainsAny(Iterable<?> iterable, Object... elements) static Object[](Partial) replacement for Arrays.copyOfRange, which is only available in JDK6.static <E,F> ArrayList<F> filterMap(Collection<E> collection, IFunction<E, F> function) static <T> TgetLastElement(List<T> list) static <K,V> Map<K, V> mapOf(K key, V value) static <K,V> Map<K, V> mapOf(K key, V value, K key2, V value2) static <K,V> Map<K, V> mapOf(K key, V value, K key2, V value2, K key3, V value3) static <T> Iterable<T>static <T> voidsetLastElement(List<T> list, T elem)
-
Constructor Details
-
CollectionUtil
public CollectionUtil()
-
-
Method Details
-
filterMap
-
copyArray
(Partial) replacement for Arrays.copyOfRange, which is only available in JDK6. -
getLastElement
-
setLastElement
-
addLastElement
-
reverse
-
asSet
-
mapOf
-
mapOf
-
mapOf
-
concat
-
concat
-
containsAny
-