|
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.P3<A,B,C>
public abstract class P3<A,B,C>
A product-3.
Constructor Summary | |
---|---|
P3()
|
Method Summary | ||
---|---|---|
static
|
__1()
Returns a function that returns the first element of a product. |
|
static
|
__2()
Returns a function that returns the second element of a product. |
|
static
|
__3()
Returns a function that returns the third element of a product. |
|
P1<A> |
_1_()
Returns the 1-product projection over the first element. |
|
abstract A |
_1()
Access the first element of the product. |
|
P1<B> |
_2_()
Returns the 1-product projection over the second element. |
|
abstract B |
_2()
Access the second element of the product. |
|
P1<C> |
_3_()
Returns the 1-product projection over the third element. |
|
abstract C |
_3()
Access the third element of the product. |
|
|
map1(F<A,X> f)
Map the first element of the product. |
|
|
map2(F<B,X> f)
Map the second element of the product. |
|
|
map3(F<C,X> f)
Map the third element of the product. |
|
P3<A,B,C> |
memo()
Provides a memoising P3 that remembers its values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public P3()
Method Detail |
---|
public abstract A _1()
public abstract B _2()
public abstract C _3()
public <X> P3<X,B,C> map1(F<A,X> f)
f
- The function to map with.
public <X> P3<A,X,C> map2(F<B,X> f)
f
- The function to map with.
public <X> P3<A,B,X> map3(F<C,X> f)
f
- The function to map with.
public P1<A> _1_()
public P1<B> _2_()
public P1<C> _3_()
public P3<A,B,C> memo()
public static <A,B,C> F<P3<A,B,C>,A> __1()
public static <A,B,C> F<P3<A,B,C>,B> __2()
public static <A,B,C> F<P3<A,B,C>,C> __3()
|
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 |