Class CollectionUtil

java.lang.Object
org.eclipse.net4j.util.collection.CollectionUtil

public final class CollectionUtil extends Object
Various static helper methods.
Since:
3.5
Author:
Eike Stepper
  • Method Details

    • dump

      public static <T> Iterator<T> dump(Iterator<T> it)
    • addNotNull

      public static <T> boolean addNotNull(Collection<? super T> c, T e)
      Since:
      3.16
    • setOf

      public static <T> Set<T> setOf(Collection<? extends T> c)
      Since:
      3.16
    • first

      public static <T> T first(Collection<? extends T> c)
      Since:
      3.16
    • removeAll

      public static <K, V> List<K> removeAll(Map<K,V> map, BiPredicate<K,V> predicate)
      Since:
      3.16
    • compute

      public static <K, V> V compute(Map<K,V> map, K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
      Since:
      3.16