net.sourceforge.jpotpourri.fprog
Class Fp

java.lang.Object
  extended by net.sourceforge.jpotpourri.fprog.Fp

public final class Fp
extends java.lang.Object

Author:
christoph_pickl@users.sourceforge.net

Method Summary
static
<T> java.util.List<T>
filter(IUnaryPredicate<T> predicate, java.util.List<T> list)
           
static
<R,T> java.util.List<R>
map(IUnaryFunction<R,T> function, java.util.List<T> list)
           
static
<T> T
reduce(IBinaryFunction<T,T> function, java.util.List<T> list, T initialValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

map

public static <R,T> java.util.List<R> map(IUnaryFunction<R,T> function,
                                          java.util.List<T> list)

filter

public static <T> java.util.List<T> filter(IUnaryPredicate<T> predicate,
                                           java.util.List<T> list)

reduce

public static <T> T reduce(IBinaryFunction<T,T> function,
                           java.util.List<T> list,
                           T initialValue)


Copyright © 2008. All Rights Reserved.