|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfj.Effect.Projection
public static final class Effect.Projection
A projection of an effect. The methods defined on a projection may belong on an effect,
however, this would disallow the use of Effect
to be used with Java 7 closure syntax.
Method Summary | ||
---|---|---|
static
|
comap(Effect<A> e,
F<B,A> f)
A contra-variant functor on effect. |
|
static
|
e(Effect<A> e)
Returns a function for the given effect. |
|
static
|
f(F<A,Unit> f)
Returns an effect for the given function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <A> Effect<A> f(F<A,Unit> f)
f
- The function to produce the effort with.
public static <A> F<A,Unit> e(Effect<A> e)
e
- The effect to produce the function with.
public static <A,B> Effect<B> comap(Effect<A> e, F<B,A> f)
e
- The effect to map over.f
- The function to map over the effect.
|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |