A - the argument type.T - the returned value type.public final class UnaryProcedureUnaryFunction<A,T> extends Object implements UnaryFunction<A,T>, Serializable
UnaryProcedure
to the
UnaryFunction 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 |
|---|
UnaryProcedureUnaryFunction(UnaryProcedure<? super A> procedure)
Create a new UnaryProcedureUnaryFunction.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,T> UnaryProcedureUnaryFunction<A,T> |
adapt(UnaryProcedure<? super A> procedure)
Adapt a UnaryProcedure to the UnaryFunction interface.
|
boolean |
equals(Object that) |
boolean |
equals(UnaryProcedureUnaryFunction<?,?> that)
Learn whether a given UnaryProcedureUnaryFunction is equal to this.
|
T |
evaluate(A obj)
Evaluate this function.
|
int |
hashCode() |
String |
toString() |
public UnaryProcedureUnaryFunction(UnaryProcedure<? super A> procedure)
procedure - to adaptpublic T evaluate(A obj)
evaluate in interface UnaryFunction<A,T>obj - the A object to evaluatepublic boolean equals(UnaryProcedureUnaryFunction<?,?> that)
that - UnaryProcedureUnaryFunction to testpublic static <A,T> UnaryProcedureUnaryFunction<A,T> adapt(UnaryProcedure<? super A> procedure)
A - the argument type.T - the returned value type.procedure - to adaptCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.