public interface OptionalValue<T>
Function
,
MaskFunction
, and Distribution
Use Factory.results()
to access the ResultFactory
.
And here use ResultFactory.optional(boolean, Object)
to
create a default value
Input parameters can be declared optional the following way:
@Config(order=1, name="My input")
OptionalValue<Double> value();
OptionalValue<Double> value = Factory.results().optional(false, 2.4);
Modifier and Type | Method and Description |
---|---|
T |
getValue() |
boolean |
isRelevant() |
boolean isRelevant()
T getValue()
Copyright © 2018. All rights reserved.