public final class NullaryFunctionNullaryProcedure extends Object implements NullaryProcedure
NullaryFunction
to the NullaryProcedure
interface by ignoring the value returned
by the function.Constructor and Description |
---|
NullaryFunctionNullaryProcedure(NullaryFunction<?> function)
Create an
NullaryProcedure wrapping
the given NullaryFunction . |
Modifier and Type | Method and Description |
---|---|
static NullaryFunctionNullaryProcedure |
adapt(NullaryFunction<?> function)
|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
run()
Execute this procedure.
|
String |
toString() |
public NullaryFunctionNullaryProcedure(NullaryFunction<?> function)
NullaryProcedure
wrapping
the given NullaryFunction
.function
- the NullaryFunction
to wrappublic void run()
Evaluate
my function,
but ignore its returned value.run
in interface Runnable
run
in interface NullaryProcedure
public static NullaryFunctionNullaryProcedure adapt(NullaryFunction<?> function)
null
,
NullaryFunction
to the
NullaryProcedure
interface.
When the given NullaryFunction
is null
,
returns null
.function
- the possibly-null
NullaryFunction
to adaptNullaryProcedure
wrapping the given
NullaryFunction
, or null
if the given NullaryFunction
is null
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.