A - the argument type.public final class ProcedureUnaryProcedure<A> extends Object implements UnaryProcedure<A>, Serializable
Procedure
to the
UnaryProcedure interface
by ignoring the arguments.
Note that although this class implements
Serializable, a given instance will
only be truly Serializable if the
underlying functor is. Attempts to serialize
an instance whose delegate is not
Serializable will result in an exception.| Constructor and Description |
|---|
ProcedureUnaryProcedure(Procedure procedure)
Create a new ProcedureUnaryProcedure.
|
| Modifier and Type | Method and Description |
|---|---|
static <A> ProcedureUnaryProcedure<A> |
adapt(Procedure procedure)
Adapt a Procedure to the UnaryProcedure interface.
|
boolean |
equals(Object that) |
boolean |
equals(ProcedureUnaryProcedure<?> that)
Learn whether another ProcedureUnaryProcedure is equal to this.
|
int |
hashCode() |
void |
run(A obj)
Execute this procedure.
|
String |
toString() |
public ProcedureUnaryProcedure(Procedure procedure)
procedure - to adaptpublic void run(A obj)
run in interface UnaryProcedure<A>obj - an A parameter to this executionpublic boolean equals(ProcedureUnaryProcedure<?> that)
that - ProcedureUnaryProcedure to testpublic static <A> ProcedureUnaryProcedure<A> adapt(Procedure procedure)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.