public final class RightIdentity extends Object
BinaryFunction (evaluates to the right argument) and a right-identity
BinaryPredicate (tests whether right Boolean argument equals Boolean.TRUE).| Modifier and Type | Field and Description |
|---|---|
static BinaryFunction<Object,Object,Object> |
FUNCTION
Right-identity function.
|
static BinaryPredicate<Object,Boolean> |
PREDICATE
Right-identity predicate.
|
| Constructor and Description |
|---|
RightIdentity()
Create a new RightIdentity.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> BinaryFunction<L,R,R> |
function()
Get a typed right-identity BinaryFunction.
|
static <L> BinaryPredicate<L,Boolean> |
predicate()
Get a typed right-identity BinaryPredicate.
|
public static final BinaryFunction<Object,Object,Object> FUNCTION
public static final BinaryPredicate<Object,Boolean> PREDICATE
public RightIdentity()
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.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.