Interface ScriptableResultChecker<T extends Number>
-
- All Known Implementing Classes:
ScriptableDoubleChecker
,ScriptableIntegerChecker
public interface ScriptableResultChecker<T extends Number>
To implement to check the consistency of the result, as a number, of aScriptable
.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
checkAndGet(T value, T defaultValue)
Checks and gets a value, managing the vaue of theScriptable
and the default.
-
-
-
Method Detail
-
checkAndGet
T checkAndGet(T value, T defaultValue)
Checks and gets a value, managing the vaue of theScriptable
and the default.- Parameters:
value
- result of aScriptable
defaultValue
- default value for the specific option- Returns:
- a checked value, as number
-
-