@Test public void testStringField () { Assert.assertTrue(ConfigFieldValidation.isStringAndNotEmpty("string")); Assert.assertFalse(ConfigFieldValidation.isStringAndNotEmpty(0)); Assert.assertFalse(ConfigFieldValidation.isStringAndNotEmpty(null)); Assert.assertFalse(ConfigFieldValidation.isStringAndNotEmpty("")); }
public static boolean isStringAndNotEmpty (Object value) { return isString(value) && !StringUtils.isEmpty((String) value); }
ConfigFieldValidation { public static boolean isStringAndNotEmpty (Object value) { return isString(value) && !StringUtils.isEmpty((String) value); } }
ConfigFieldValidation { public static boolean isStringAndNotEmpty (Object value) { return isString(value) && !StringUtils.isEmpty((String) value); }  }
ConfigFieldValidation { public static boolean isStringAndNotEmpty (Object value) { return isString(value) && !StringUtils.isEmpty((String) 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 isStringAndNotEmpty (Object value) { return isString(value) && !StringUtils.isEmpty((String) 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);  }