Package org.yamcs.xtceproc
Class ValidRangeChecker
- java.lang.Object
-
- org.yamcs.xtceproc.ValidRangeChecker
-
public class ValidRangeChecker extends Object
-
-
Constructor Summary
Constructors Constructor Description ValidRangeChecker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
checkFloatRange
public static boolean checkFloatRange(FloatValidRange fvr, double x)
checks that x is in the range and returns true if it is and false if it's not- Parameters:
fvr
-x
-- Returns:
-
checkIntegerRange
public 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 not- Parameters:
vr
- - range to check againstx
-- Returns:
-
checkUnsignedIntegerRange
public static boolean checkUnsignedIntegerRange(IntegerValidRange vr, long x)
-
checkFloatRange
public static boolean checkFloatRange(FloatValidRange fvr, Value v)
Checks if the value is within range. If the value is not of numeric type returns false.
-
checkIntegerRange
public static boolean checkIntegerRange(IntegerValidRange ivr, Value v)
Checks if the value is within range. If the value is not of numeric type returns false.
-
-