@Test public void testDoubleOrFloatField () { Assert.assertTrue(ConfigFieldValidation.isFloatOrDouble(0)); Assert.assertTrue(ConfigFieldValidation.isFloatOrDouble(Integer.MAX_VALUE + 1)); Assert.assertTrue(ConfigFieldValidation.isFloatOrDouble(0.0d)); Assert.assertFalse(ConfigFieldValidation.isFloatOrDouble(null)); Assert.assertFalse(ConfigFieldValidation.isFloatOrDouble("string")); }
public static boolean isFloatOrDouble (Object value) { return isInteger(value) || isLong(value) || isDouble(value); }
ConfigFieldValidation { public static boolean isFloatOrDouble (Object value) { return isInteger(value) || isLong(value) || isDouble(value); } }
ConfigFieldValidation { public static boolean isFloatOrDouble (Object value) { return isInteger(value) || isLong(value) || isDouble(value); }  }
ConfigFieldValidation { public static boolean isFloatOrDouble (Object value) { return isInteger(value) || isLong(value) || isDouble(value); }  static boolean isSubType(Class clazz, Object value); static boolean isBoolean(Object value); static boolean isInteger(Object value); static boolean isLong(Object value); static boolean isDouble(Object value); static boolean isString(Object value); static boolean isList(Object value); static boolean isByteAndInRange(Object value, byte min, byte max); static boolean isShortAndInRange(Object value, short min, short max); static boolean isIntAndInRange(Object value, int min, int max); static boolean isLongAndInRange(Object value, long min, long max); static boolean isFloatOrDouble(Object value); static boolean isStringAndNotEmpty(Object value); static boolean isInRange(int value, int min, int max); static boolean isInRange(long value, long min, long max); }
ConfigFieldValidation { public static boolean isFloatOrDouble (Object value) { return isInteger(value) || isLong(value) || isDouble(value); }  static boolean isSubType(Class clazz, Object value); static boolean isBoolean(Object value); static boolean isInteger(Object value); static boolean isLong(Object value); static boolean isDouble(Object value); static boolean isString(Object value); static boolean isList(Object value); static boolean isByteAndInRange(Object value, byte min, byte max); static boolean isShortAndInRange(Object value, short min, short max); static boolean isIntAndInRange(Object value, int min, int max); static boolean isLongAndInRange(Object value, long min, long max); static boolean isFloatOrDouble(Object value); static boolean isStringAndNotEmpty(Object value); static boolean isInRange(int value, int min, int max); static boolean isInRange(long value, long min, long max);  }