public final class Conditional extends Object
Modifier and Type | Method and Description |
---|---|
static <L,R,T> BinaryFunction<L,R,T> |
function(BinaryPredicate<? super L,? super R> q,
BinaryFunction<? super L,? super R,? extends T> r,
BinaryFunction<? super L,? super R,? extends T> s)
Create a conditional BinaryFunction.
|
static <T> NullaryFunction<T> |
function(NullaryPredicate q,
NullaryFunction<? extends T> r,
NullaryFunction<? extends T> s)
Create a conditional NullaryFunction.
|
static <A,T> Function<A,T> |
function(Predicate<? super A> q,
Function<? super A,? extends T> r,
Function<? super A,? extends T> s)
Create a conditional Function.
|
static <L,R> BinaryPredicate<L,R> |
predicate(BinaryPredicate<? super L,? super R> q,
BinaryPredicate<? super L,? super R> r,
BinaryPredicate<? super L,? super R> s)
Create a conditional BinaryPredicate.
|
static NullaryPredicate |
predicate(NullaryPredicate q,
NullaryPredicate r,
NullaryPredicate s)
Create a conditional NullaryPredicate.
|
static <A> Predicate<A> |
predicate(Predicate<? super A> q,
Predicate<? super A> r,
Predicate<? super A> s)
Create a conditional Predicate.
|
static <L,R> BinaryProcedure<L,R> |
procedure(BinaryPredicate<? super L,? super R> q,
BinaryProcedure<? super L,? super R> r)
Create a guarded BinaryProcedure.
|
static <L,R> BinaryProcedure<L,R> |
procedure(BinaryPredicate<? super L,? super R> q,
BinaryProcedure<? super L,? super R> r,
BinaryProcedure<? super L,? super R> s)
Create a conditional BinaryProcedure.
|
static NullaryProcedure |
procedure(NullaryPredicate q,
NullaryProcedure r)
Create a guarded NullaryProcedure.
|
static NullaryProcedure |
procedure(NullaryPredicate q,
NullaryProcedure r,
NullaryProcedure s)
Create a conditional NullaryProcedure.
|
static <A> Procedure<A> |
procedure(Predicate<? super A> q,
Procedure<? super A> r)
Create a guarded Procedure.
|
static <A> Procedure<A> |
procedure(Predicate<? super A> q,
Procedure<? super A> r,
Procedure<? super A> s)
Create a conditional Procedure.
|
public static NullaryProcedure procedure(NullaryPredicate q, NullaryProcedure r)
q
- ifr
- thenpublic static NullaryProcedure procedure(NullaryPredicate q, NullaryProcedure r, NullaryProcedure s)
q
- ifr
- thens
- elsepublic static <T> NullaryFunction<T> function(NullaryPredicate q, NullaryFunction<? extends T> r, NullaryFunction<? extends T> s)
T
- the input functions parameter typeq
- ifr
- thens
- elsepublic static NullaryPredicate predicate(NullaryPredicate q, NullaryPredicate r, NullaryPredicate s)
q
- ifr
- thens
- elsepublic static <A> Procedure<A> procedure(Predicate<? super A> q, Procedure<? super A> r)
public static <A> Procedure<A> procedure(Predicate<? super A> q, Procedure<? super A> r, Procedure<? super A> s)
public static <A,T> Function<A,T> function(Predicate<? super A> q, Function<? super A,? extends T> r, Function<? super A,? extends T> s)
public static <A> Predicate<A> predicate(Predicate<? super A> q, Predicate<? super A> r, Predicate<? super A> s)
public static <L,R> BinaryProcedure<L,R> procedure(BinaryPredicate<? super L,? super R> q, BinaryProcedure<? super L,? super R> r)
L
- the left argument type.R
- the right argument type.q
- ifr
- thenpublic static <L,R> BinaryProcedure<L,R> procedure(BinaryPredicate<? super L,? super R> q, BinaryProcedure<? super L,? super R> r, BinaryProcedure<? super L,? super R> s)
L
- the left argument type.R
- the right argument type.q
- ifr
- thens
- elsepublic static <L,R,T> BinaryFunction<L,R,T> function(BinaryPredicate<? super L,? super R> q, BinaryFunction<? super L,? super R,? extends T> r, BinaryFunction<? super L,? super R,? extends T> s)
L
- the left argument type.R
- the right argument type.T
- the output function returned value type.q
- ifr
- thens
- elsepublic static <L,R> BinaryPredicate<L,R> predicate(BinaryPredicate<? super L,? super R> q, BinaryPredicate<? super L,? super R> r, BinaryPredicate<? super L,? super R> s)
L
- the left argument type.R
- the right argument type.q
- ifr
- thens
- elseCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.