Package org.eclipse.net4j.util.collection

# Klasse CollectionUtil

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

public final class CollectionUtil extends Object
Various static helper methods.

Seit:
  3.5
Autor:
  Eike Stepper

## Verschachtelte Klassen - Übersicht

Verschachtelte Klassen
Modifizierer und Typ
Klasse
Beschreibung
`static final class`
`CollectionUtil.KeepMappedValue`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`static <T> boolean`
`addNotNull(Collection<? super T> c, T e)`
`static <K, V> V`
`compute(Map<K,V> map, K key, BiFunction<? super K,? super V,? extends V> remappingFunction)`
`static <T> Stream<T>`
`concat(Collection<Stream<T>> streams)`
`static <T> Stream<T>`
`concat(Stream<T>... streams)`
`static <T> Iterator<T>`
`dump(Iterator<T> it)`
`static <T> T`
`first(Collection<? extends T> c)`
`static <K, V> List<K>`
`removeAll(Map<K,V> map, BiPredicate<K,V> predicate)`
`static <T> Set<T>`
`setOf(Collection<? extends T> c)`
`static <NODE> List<NODE>`
`topologicalSort(Collection<NODE> nodes, Function<NODE,Collection<NODE>> edgeProvider)`
`static <NODE> List<NODE>`
`topologicalSort(Collection<NODE> nodes, Function<NODE,Collection<NODE>> edgeProvider, boolean reverse)`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Methodendetails

### dump

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

### topologicalSort

public static <NODE> List<NODE> topologicalSort(Collection<NODE> nodes, Function<NODE,Collection<NODE>> edgeProvider)

Seit:
  3.25

### topologicalSort

public static <NODE> List<NODE> topologicalSort(Collection<NODE> nodes, Function<NODE,Collection<NODE>> edgeProvider, boolean reverse)

Seit:
  3.25

### addNotNull

public static <T> boolean addNotNull(Collection<? super T> c, T e)

Seit:
  3.16

### setOf

public static <T> Set<T> setOf(Collection<? extends T> c)

Seit:
  3.16

### first

public static <T> T first(Collection<? extends T> c)

Seit:
  3.16

### removeAll

public static <K, V> List<K> removeAll(Map<K,V> map, BiPredicate<K,V> predicate)

Seit:
  3.16

### compute

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

Seit:
  3.16

### concat

@SafeVarargs public static <T> Stream<T> concat(Stream<T>... streams)

Seit:
  3.26

### concat

public static <T> Stream<T> concat(Collection<Stream<T>> streams)

Seit:
  3.26