|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.functor.core.RightIdentity
public final class RightIdentity
Holder class for a right-identity BinaryFunction (evaluates to the right argument) and a right-identity
BinaryPredicate (tests whether right Boolean argument equals Boolean.TRUE).
| Field Summary | |
|---|---|
static BinaryFunction<Object,Object,Object> |
FUNCTION
Right-identity function. |
static BinaryPredicate<Object,Boolean> |
PREDICATE
Right-identity predicate. |
| Constructor Summary | |
|---|---|
RightIdentity()
Create a new RightIdentity. |
|
| Method Summary | ||
|---|---|---|
static
|
function()
Get a typed right-identity BinaryFunction. |
|
static
|
predicate()
Get a typed right-identity BinaryPredicate. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final BinaryFunction<Object,Object,Object> FUNCTION
public static final BinaryPredicate<Object,Boolean> PREDICATE
| Constructor Detail |
|---|
public RightIdentity()
| Method Detail |
|---|
public static <L,R> BinaryFunction<L,R,R> function()
L - the left argument type.R - the right argument type.
public static <L> BinaryPredicate<L,Boolean> predicate()
L - the left argument type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||