@Test public void extractDivisionCode_4digit() { assertEquals("63", CommonCourtDivisionUtils.tryExtractDivisionTypeCode("1563")); }
public static String tryExtractDivisionTypeCode(String divisionCode) { if (!isTolerantlyValidCcDivisionCode(divisionCode)) { return null; } return divisionCode.substring(divisionCode.length()-2, divisionCode.length()); }
CommonCourtDivisionUtils { public static String tryExtractDivisionTypeCode(String divisionCode) { if (!isTolerantlyValidCcDivisionCode(divisionCode)) { return null; } return divisionCode.substring(divisionCode.length()-2, divisionCode.length()); } }
CommonCourtDivisionUtils { public static String tryExtractDivisionTypeCode(String divisionCode) { if (!isTolerantlyValidCcDivisionCode(divisionCode)) { return null; } return divisionCode.substring(divisionCode.length()-2, divisionCode.length()); } private  CommonCourtDivisionUtils(); }
CommonCourtDivisionUtils { public static String tryExtractDivisionTypeCode(String divisionCode) { if (!isTolerantlyValidCcDivisionCode(divisionCode)) { return null; } return divisionCode.substring(divisionCode.length()-2, divisionCode.length()); } private  CommonCourtDivisionUtils(); static boolean isStrictlyValidCcDivisionCode(String divisionCode); static boolean isTolerantlyValidCcDivisionCode(String divisionCode); static String tryExtractNonLocalType(String divisionCode); static String tryExtractNonLocalCode(String divisionCode); static String tryExtractDivisionTypeCode(String divisionCode); static String tryExtractDivisionNumber(String divisionCode); }
CommonCourtDivisionUtils { public static String tryExtractDivisionTypeCode(String divisionCode) { if (!isTolerantlyValidCcDivisionCode(divisionCode)) { return null; } return divisionCode.substring(divisionCode.length()-2, divisionCode.length()); } private  CommonCourtDivisionUtils(); static boolean isStrictlyValidCcDivisionCode(String divisionCode); static boolean isTolerantlyValidCcDivisionCode(String divisionCode); static String tryExtractNonLocalType(String divisionCode); static String tryExtractNonLocalCode(String divisionCode); static String tryExtractDivisionTypeCode(String divisionCode); static String tryExtractDivisionNumber(String divisionCode);  }