T - the returned value type.public final class ProcedureFunction<T> extends Object implements Function<T>, Serializable
Procedure
to the
Function interface
by always returning null.
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if the
underlying procedure is. Attempts to serialize
an instance whose delegate is not
Serializable will result in an exception.| Constructor and Description |
|---|
ProcedureFunction(Procedure procedure)
Create a new ProcedureFunction.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ProcedureFunction<T> |
adapt(Procedure procedure)
Adapt a Procedure as a Function.
|
boolean |
equals(Object that) |
boolean |
equals(ProcedureFunction<?> that)
Learn whether another ProcedureFunction is equal to this.
|
T |
evaluate()
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public ProcedureFunction(Procedure procedure)
procedure - to adaptpublic boolean equals(ProcedureFunction<?> that)
that - ProcedureFunction to testpublic static <T> ProcedureFunction<T> adapt(Procedure procedure)
T - the returned value type.procedure - to adaptCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.