public class MoreCollectionExtensions extends Object
| Constructor and Description |
|---|
MoreCollectionExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <T,FT> Iterable<FT> |
filterInstanceOf(Iterable<T> unfiltered,
Class<FT> type) |
static <K,V> V |
getOrCreate(Map<K,? super V> map,
K key,
org.eclipse.xtext.xbase.lib.Functions.Function1<? super K,? extends V> factory) |
static <K,V> List<V> |
getOrCreateList(Map<K,List<V>> map,
K key) |
static <K1,K2,V> Map<K2,V> |
getOrCreateMap(Map<K1,Map<K2,V>> map,
K1 key) |
static <K,V> Set<V> |
getOrCreateSet(Map<K,Set<V>> map,
K key) |
static <K,V> SortedSet<V> |
getOrCreateSortedSet(Map<K,SortedSet<V>> map,
K key) |
static <T> T |
singleValue(Iterable<? extends T> values) |
public static <K,V> V getOrCreate(Map<K,? super V> map, K key, org.eclipse.xtext.xbase.lib.Functions.Function1<? super K,? extends V> factory)
public static <K,V> SortedSet<V> getOrCreateSortedSet(Map<K,SortedSet<V>> map, K key)
public static <T,FT> Iterable<FT> filterInstanceOf(Iterable<T> unfiltered, Class<FT> type)
public static <T> T singleValue(Iterable<? extends T> values)
Copyright © 2018. All rights reserved.