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 TcheckAndGet(T value, T defaultValue)Checks and gets a value, managing the vaue of theScriptableand the default.
-
-
-
Method Detail
-
checkAndGet
T checkAndGet(T value, T defaultValue)
Checks and gets a value, managing the vaue of theScriptableand the default.- Parameters:
value- result of aScriptabledefaultValue- default value for the specific option- Returns:
- a checked value, as number
-
-