|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.functor.core.LeftIdentity
public final class LeftIdentity
Holder class for a left-identity BinaryFunction (evaluates to the left argument) and a left-identity
BinaryPredicate (tests whether left Boolean argument equals Boolean.TRUE).
| Field Summary | |
|---|---|
static BinaryFunction<Object,Object,Object> |
FUNCTION
Left-identity function. |
static BinaryPredicate<Boolean,Object> |
PREDICATE
Left-identity predicate. |
| Constructor Summary | |
|---|---|
LeftIdentity()
Create a new LeftIdentity (for clients that require an object). |
|
| Method Summary | ||
|---|---|---|
static
|
function()
Get a Left-identity BinaryFunction. |
|
static
|
predicate()
Get a left-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<Boolean,Object> PREDICATE
| Constructor Detail |
|---|
public LeftIdentity()
| Method Detail |
|---|
public static <L,R> BinaryFunction<L,R,L> function()
L - the left argument type.R - the right argument type.
public static <R> BinaryPredicate<Boolean,R> predicate()
R - the right argument type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||