Class InternalUtils

java.lang.Object
com.commercetools.api.models.InternalUtils

public final class InternalUtils extends Object
  • Method Details

    • join

      public static <T> String join(List<T> list)
    • immutableCopyOf

      public static <T> List<T> immutableCopyOf(List<T> list)
    • asImmutableList

      @SafeVarargs public static <T> List<T> asImmutableList(T... elements)
    • listOf

      public static <T> List<T> listOf(T element, T[] array)
    • listOf

      public static <T> List<T> listOf(List<T> elements, T element)
    • listOf

      public static <T> List<T> listOf(List<? extends T> first, List<? extends T> second)
    • reverse

      public static <T> List<T> reverse(List<T> list)
    • asSet

      @SafeVarargs public static <T> Set<T> asSet(T... params)
    • setOf

      public static <T> Set<T> setOf(T element, Set<T> set)
    • setOf

      public static <T> Set<T> setOf(Set<T> first, Set<T> second)
    • setOf

      public static <T> Set<T> setOf(T element, T[] array)
    • slugifyUnique

      public static String slugifyUnique(String s)
    • slugify

      public static String slugify(String s)
    • getOrThrow

      public static <K, V, E extends Throwable> V getOrThrow(Map<K,V> map, K key, Supplier<E> exceptionSupplier) throws E
      Throws:
      E extends Throwable
    • immutableCopyOf

      public static <K, V> Map<K,V> immutableCopyOf(Map<K,V> map)
    • copyOf

      public static <K, V> Map<K,V> copyOf(Map<K,V> map)
    • mapOf

      public static <K, V> Map<K,V> mapOf(K key, V value)
    • mapOf

      public static <K, V> Map<K,V> mapOf(K key1, V value1, K key2, V value2)
    • isEmpty

      public static boolean isEmpty(Iterable<?> iterable)
    • requireNonEmpty

      public static <T> Iterable<T> requireNonEmpty(Iterable<T> iterable)
    • toList

      public static <T> List<T> toList(Iterable<T> iterable)
    • toStream

      public static <T> Stream<T> toStream(Iterable<T> iterable)