Package com.commercetools.api.models
Class InternalUtils
java.lang.Object
com.commercetools.api.models.InternalUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<T>
asImmutableList
(T... elements) static <T> Set<T>
asSet
(T... params) static <K,
V> Map<K, V> static <K,
V, E extends Throwable>
VgetOrThrow
(Map<K, V> map, K key, Supplier<E> exceptionSupplier) static <T> List<T>
immutableCopyOf
(List<T> list) static <K,
V> Map<K, V> immutableCopyOf
(Map<K, V> map) static boolean
static <T> String
static <T> List<T>
static <T> List<T>
static <T> List<T>
listOf
(T element, T[] array) static <K,
V> Map<K, V> mapOf
(K key, V value) static <K,
V> Map<K, V> mapOf
(K key1, V value1, K key2, V value2) static <T> Iterable<T>
requireNonEmpty
(Iterable<T> iterable) static <T> List<T>
static <T> Set<T>
static <T> Set<T>
static <T> Set<T>
setOf
(T element, T[] array) static String
static String
static <T> List<T>
static <T> Stream<T>
-
Method Details
-
join
-
immutableCopyOf
-
asImmutableList
-
listOf
-
listOf
-
listOf
-
reverse
-
asSet
-
setOf
-
setOf
-
setOf
-
slugifyUnique
-
slugify
-
getOrThrow
public static <K,V, V getOrThrowE extends Throwable> (Map<K, V> map, K key, Supplier<E> exceptionSupplier) throws E- Throws:
E extends Throwable
-
immutableCopyOf
-
copyOf
-
mapOf
-
mapOf
-
isEmpty
-
requireNonEmpty
-
toList
-
toStream
-