Package org.seamcat.model.plugin
Interface OptionalValue<T>
-
public interface OptionalValue<T>
Used to indicate that an input parameter is optional. This currently work for: Double, Integer,Function
,MaskFunction
, andDistribution
Use
Factory.results()
to access theResultFactory
. And here useResultFactory.optional(boolean, Object)
to create a default valueInput 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);
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getValue()
boolean
isRelevant()
-
-
-
Method Detail
-
isRelevant
boolean isRelevant()
-
getValue
T getValue()
-
-