@Test public void testIsOnlyUpperCase() { assertTrue("'M' is uppercase only", ConversionHelper.isOnlyUpperCase("M")); assertTrue("'MOO' is uppercase only", ConversionHelper.isOnlyUpperCase("MOO")); assertFalse("'Moo' is NOT uppercase only", ConversionHelper.isOnlyUpperCase("Moo")); assertFalse("<null> is NOT uppercase only", ConversionHelper.isOnlyUpperCase(null)); }
public static boolean isOnlyUpperCase(final String param) { if(param == null) { return false; } for (char c : param.toCharArray()) { if (Character.isLowerCase(c)) { return false; } } return true; }
ConversionHelper { public static boolean isOnlyUpperCase(final String param) { if(param == null) { return false; } for (char c : param.toCharArray()) { if (Character.isLowerCase(c)) { return false; } } return true; } }
ConversionHelper { public static boolean isOnlyUpperCase(final String param) { if(param == null) { return false; } for (char c : param.toCharArray()) { if (Character.isLowerCase(c)) { return false; } } return true; }  }
ConversionHelper { public static boolean isOnlyUpperCase(final String param) { if(param == null) { return false; } for (char c : param.toCharArray()) { if (Character.isLowerCase(c)) { return false; } } return true; }  static String firstNonNull(final String ... strings); static int count(final String string, final String substring); static String decapitalize(String param, boolean allCapsStringToLowercase); static String decapitalize(final String param); static boolean isOnlyUpperCase(final String param); static final String getString(final String str, final String defaultValue); static final long getLong(final String strToParse, final long defaultValue); static final int getInt(final String strToParse, final int defaultValue); static final double getDouble(final String strToParse, final double defaultValue); static final boolean getBoolean(final String strToParse, final boolean defaultValue); static final boolean getOnOffBoolean(final String strToParse, final boolean defaultValue); static final List<String> getStringList(final List<String> idList); static final List<Integer> getIntList(final List<String> idList); static Set<T> asSet(final T... array); }
ConversionHelper { public static boolean isOnlyUpperCase(final String param) { if(param == null) { return false; } for (char c : param.toCharArray()) { if (Character.isLowerCase(c)) { return false; } } return true; }  static String firstNonNull(final String ... strings); static int count(final String string, final String substring); static String decapitalize(String param, boolean allCapsStringToLowercase); static String decapitalize(final String param); static boolean isOnlyUpperCase(final String param); static final String getString(final String str, final String defaultValue); static final long getLong(final String strToParse, final long defaultValue); static final int getInt(final String strToParse, final int defaultValue); static final double getDouble(final String strToParse, final double defaultValue); static final boolean getBoolean(final String strToParse, final boolean defaultValue); static final boolean getOnOffBoolean(final String strToParse, final boolean defaultValue); static final List<String> getStringList(final List<String> idList); static final List<Integer> getIntList(final List<String> idList); static Set<T> asSet(final T... array);  }