Class CollectionUtils

java.lang.Object
de.bwaldvogel.mongo.backend.CollectionUtils

public final class CollectionUtils extends Object
  • Method Details

    • getSingleElement

      public static <T> T getSingleElement(Iterable<T> iterable)
    • getLastElement

      public static <T> T getLastElement(List<T> list)
    • getSingleElement

      public static <T> T getSingleElement(Iterable<T> iterable, Supplier<? extends RuntimeException> exceptionSupplier)
    • removeAll

      public static <T extends Map<K, ?>, K> T removeAll(T map, Collection<K> keysToRemove)