Package org.yamcs.mdb
Class ValidRangeChecker
java.lang.Object
org.yamcs.mdb.ValidRangeChecker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkFloatRange
(FloatValidRange fvr, double x) checks that x is in the range and returns true if it is and false if it's notstatic boolean
checkFloatRange
(FloatValidRange fvr, Value v) Checks if the value is within range.static boolean
checkIntegerRange
(IntegerValidRange vr, long x) checks that x is in the range and returns true if it is and false if it's notstatic boolean
checkIntegerRange
(IntegerValidRange ivr, Value v) Checks if the value is within range.static boolean
checkUnsignedIntegerRange
(IntegerValidRange vr, long x)
-
Constructor Details
-
ValidRangeChecker
public ValidRangeChecker()
-
-
Method Details
-
checkFloatRange
checks that x is in the range and returns true if it is and false if it's not- Parameters:
fvr
-x
-- Returns:
-
checkIntegerRange
checks that x is in the range and returns true if it is and false if it's not- Parameters:
vr
- - range to check againstx
-- Returns:
-
checkUnsignedIntegerRange
-
checkFloatRange
Checks if the value is within range. If the value is not of numeric type returns false. -
checkIntegerRange
Checks if the value is within range. If the value is not of numeric type returns false.
-