public final class FunctionProcedure extends Object implements Procedure, Serializable
Function
to the Procedure
interface by ignoring the value returned
by the function.
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if the
underlying function is. Attempts to serialize
an instance whose delegate is not
Serializable will result in an exception.| Constructor and Description |
|---|
FunctionProcedure(Function<?> function)
|
| Modifier and Type | Method and Description |
|---|---|
static FunctionProcedure |
adapt(Function<?> function)
|
boolean |
equals(FunctionProcedure that)
Learn whether another FunctionProcedure is equal to this.
|
boolean |
equals(Object that) |
int |
hashCode() |
void |
run()
Execute this procedure.
|
String |
toString() |
public FunctionProcedure(Function<?> function)
function - the Function to wrappublic boolean equals(FunctionProcedure that)
that - FunctionProcedure to testpublic static FunctionProcedure adapt(Function<?> function)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.