|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.karmasphere.share.util.MapUtil
public class MapUtil
| Method Summary | ||
|---|---|---|
static
|
collate(Set<I> s,
Functor<I,K> f,
Functor<I,V> g)
Returns map { f(\$_) => { g(\$_) } } |
|
static
|
collate(Set<V> s,
Functor<V,K> f)
Returns map { f(\$_) => { \$_ } } |
|
static
|
map(Set<V> s,
Functor<V,K> f)
Behaves like Perl's map { \$_ => f(\$_) } |
|
static
|
scatter(Set<V> s,
Functor<V,Set<K>> f)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <K,V> Map<K,Set<V>> collate(Set<V> s,
Functor<V,K> f)
map { f(\$_) => { \$_ } }
public static <I,K,V> Map<K,Set<V>> collate(Set<I> s,
Functor<I,K> f,
Functor<I,V> g)
map { f(\$_) => { g(\$_) } }
public static <K,V> Map<K,V> map(Set<V> s,
Functor<V,K> f)
map { \$_ => f(\$_) }
public static <K,V> Map<K,Set<V>> scatter(Set<V> s,
Functor<V,Set<K>> f)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||