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