Class Collections

java.lang.Object
de.danielbechler.util.Collections

public class Collections extends Object
  • Method Details

    • setOf

      public static <T> Set<T> setOf(Collection<T> c)
    • isEmpty

      public static boolean isEmpty(Collection<?> c)
    • containsAny

      public static <T> boolean containsAny(Iterable<T> haystack, Iterable<T> needles)
    • filteredCopyOf

      public static <T> Collection<? extends T> filteredCopyOf(Collection<? extends T> source, Collection<? extends T> filter)
    • firstElementOf

      public static <T> T firstElementOf(Collection<? extends T> items)