@Test public void isUpperHyphenCase() { assertThat(StringCaseUtils.isUpperHyphenCase("")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("A")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("A0")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("Aa")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("AA")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("0")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("00")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("0a")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("0A")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("a")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("a0")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("aa")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("aA")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("A00")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("A0a")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("A0A")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("A-A")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("A-a")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("A-0")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("A-AA")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("AA-A")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("AA-a")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("AA-0")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("Aa-A")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("Aa-Aa")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("Aa-A0")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("A0-A")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("A0-Aa")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("A0-A0")).isTrue(); assertThat(StringCaseUtils.isUpperHyphenCase("A0-a0")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("A0-aa")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("A0-aA")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("A0-0")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("A0-00")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("A0-0a")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("A0-0A")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("_aaA00")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("a_aA00")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("aa_A00")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("aaA_00")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("aaA0_0")).isFalse(); assertThat(StringCaseUtils.isUpperHyphenCase("aaA00_")).isFalse(); }
public static boolean isUpperHyphenCase(String string) { if (StringUtils.isBlank(string)) { return false; } return UPPER_HYPHEN_CASE.matcher(string).matches(); }
StringCaseUtils { public static boolean isUpperHyphenCase(String string) { if (StringUtils.isBlank(string)) { return false; } return UPPER_HYPHEN_CASE.matcher(string).matches(); } }
StringCaseUtils { public static boolean isUpperHyphenCase(String string) { if (StringUtils.isBlank(string)) { return false; } return UPPER_HYPHEN_CASE.matcher(string).matches(); } private  StringCaseUtils(); }
StringCaseUtils { public static boolean isUpperHyphenCase(String string) { if (StringUtils.isBlank(string)) { return false; } return UPPER_HYPHEN_CASE.matcher(string).matches(); } private  StringCaseUtils(); static boolean isLowerCamelCase(String string); static boolean isUpperCamelCase(String string); static boolean isUpperHyphenCase(String string); static boolean isMatchCase(String expectedCase, String string); }
StringCaseUtils { public static boolean isUpperHyphenCase(String string) { if (StringUtils.isBlank(string)) { return false; } return UPPER_HYPHEN_CASE.matcher(string).matches(); } private  StringCaseUtils(); static boolean isLowerCamelCase(String string); static boolean isUpperCamelCase(String string); static boolean isUpperHyphenCase(String string); static boolean isMatchCase(String expectedCase, String string);  }