|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.karmasphere.share.util.CollectionUtil
public class CollectionUtil
| Method Summary | ||
|---|---|---|
static
|
filter(List<I> in,
Condition<C> f)
Behaves like Perl's grep { f($) }. |
|
static
|
filter(Set<I> in,
Condition<C> f)
Behaves like Perl's grep { f($) }. |
|
static
|
map(List<I> in,
Functor<I,O> f)
Behaves like Perl's map { f($) } |
|
static
|
map(Set<I> in,
Functor<I,O> f)
Behaves like Perl's map { f($) } |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <I,O> List<O> map(List<I> in,
Functor<I,O> f)
map { f($) }
public static <C,I extends C> List<I> filter(List<I> in,
Condition<C> f)
grep { f($) }.
public static <I,O> Set<O> map(Set<I> in,
Functor<I,O> f)
map { f($) }
public static <C,I extends C> Set<I> filter(Set<I> in,
Condition<C> f)
grep { f($) }.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||