Class CollectionUtils
java.lang.Object
org.jobrunr.utils.CollectionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ArrayList<T> asArrayList(Collection<T> existingCollection) static <T> List<T> asList(T[] array, T... params) static <T> Set<T> asSet(Collection<T>... existingCollections) static <T> Set<T> asSet(T... items) static <T> Optional<T> static <T> Optional<T> static <T> Tstatic <T> Tstatic <T> booleanisNotNullOrEmpty(Collection<T> collection) static <T> booleanisNotNullOrEmpty(T[] someArray) static <T> booleanisNullOrEmpty(Collection<T> collection) static <T> booleanisNullOrEmpty(T[] someArray) static <K,V> Map <K, V> mapOf(K key1, V value1) static <K,V> Map <K, V> mapOf(K key1, V value1, K key2, V value2) static <K,V> Map <K, V> mapOf(K key1, V value1, K key2, V value2, K key3, V value3) static <K,V> Map <K, V> mapOf(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4) static <K,V> Map <K, V> mapOf(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5) static <K,V> Map <K, V> mapOf(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6) static <K,V> Map <K, V> mapOf(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7) static <K,V> Map <K, V> mapOf(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7, K key8, V value8)
-
Method Details
-
isNotNullOrEmpty
-
isNullOrEmpty
-
isNotNullOrEmpty
public static <T> boolean isNotNullOrEmpty(T[] someArray) -
isNullOrEmpty
public static <T> boolean isNullOrEmpty(T[] someArray) -
asList
-
asArrayList
-
asSet
-
asSet
-
findFirst
-
findLast
-
getFirst
-
getLast
-
mapOf
-
mapOf
-
mapOf
-
mapOf
public static <K,V> Map<K,V> mapOf(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4) -
mapOf
public static <K,V> Map<K,V> mapOf(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5) -
mapOf
public static <K,V> Map<K,V> mapOf(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6) -
mapOf
public static <K,V> Map<K,V> mapOf(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7) -
mapOf
public static <K,V> Map<K,V> mapOf(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7, K key8, V value8)
-