@Test public void testForTrimAtLast() { String test = trimAtLast(CHECK_STRING, "six"); assertThat(test.contains(TRIM_STRING), is(true)); }
public static String trimAtLast(String valueString, String removealStirng) { StringBuilder stringBuilder = new StringBuilder(valueString); int index = valueString.lastIndexOf(removealStirng); stringBuilder.deleteCharAt(index); return stringBuilder.toString(); }
YangIoUtils { public static String trimAtLast(String valueString, String removealStirng) { StringBuilder stringBuilder = new StringBuilder(valueString); int index = valueString.lastIndexOf(removealStirng); stringBuilder.deleteCharAt(index); return stringBuilder.toString(); } }
YangIoUtils { public static String trimAtLast(String valueString, String removealStirng) { StringBuilder stringBuilder = new StringBuilder(valueString); int index = valueString.lastIndexOf(removealStirng); stringBuilder.deleteCharAt(index); return stringBuilder.toString(); } private  YangIoUtils(); }
YangIoUtils { public static String trimAtLast(String valueString, String removealStirng) { StringBuilder stringBuilder = new StringBuilder(valueString); int index = valueString.lastIndexOf(removealStirng); stringBuilder.deleteCharAt(index); return stringBuilder.toString(); } private  YangIoUtils(); static File createDirectories(String path); static void addPackageInfo(File path, String classInfo, String pack, boolean isChildNode,
            YangPluginConfig pluginConfig); static String parsePkg(String pack); static void deleteDirectory(String dir); static void searchAndDeleteTempDir(String root); static String trimAtLast(String valueString, String removealStirng); static String partString(String partString); static String getDirectory(String baseCodeGenPath, String pathOfJavaPkg); static String getAbsolutePackagePath(String baseCodeGenPath, String pathOfJavaPkg); static void mergeJavaFiles(File appendFile, File srcFile); static void insertDataIntoJavaFile(File file, String data); static File validateLineLength(File dataFile); static String getJavaPackageFromPackagePath(String packagePath); static String getPackageDirPathFromJavaJPackage(String packagePath); static String getSmallCase(String yangIdentifier); static String getCapitalCase(String yangIdentifier); static String restrictConsecutiveCapitalCase(String consecCapitalCaseRemover); static String addPrefix(String camelCasePrefix, YangToJavaNamingConflictUtil conflictResolver); static String applyCamelCaseRule(String[] stringArray, YangToJavaNamingConflictUtil conflictResolver); static String upperCaseConflictResolver(String[] stringArray,
                                                   YangToJavaNamingConflictUtil conflictResolver); static String getCamelCase(String yangIdentifier, YangToJavaNamingConflictUtil conflictResolver); static String getPrefixForIdentifier(YangToJavaNamingConflictUtil conflictResolver); }
YangIoUtils { public static String trimAtLast(String valueString, String removealStirng) { StringBuilder stringBuilder = new StringBuilder(valueString); int index = valueString.lastIndexOf(removealStirng); stringBuilder.deleteCharAt(index); return stringBuilder.toString(); } private  YangIoUtils(); static File createDirectories(String path); static void addPackageInfo(File path, String classInfo, String pack, boolean isChildNode,
            YangPluginConfig pluginConfig); static String parsePkg(String pack); static void deleteDirectory(String dir); static void searchAndDeleteTempDir(String root); static String trimAtLast(String valueString, String removealStirng); static String partString(String partString); static String getDirectory(String baseCodeGenPath, String pathOfJavaPkg); static String getAbsolutePackagePath(String baseCodeGenPath, String pathOfJavaPkg); static void mergeJavaFiles(File appendFile, File srcFile); static void insertDataIntoJavaFile(File file, String data); static File validateLineLength(File dataFile); static String getJavaPackageFromPackagePath(String packagePath); static String getPackageDirPathFromJavaJPackage(String packagePath); static String getSmallCase(String yangIdentifier); static String getCapitalCase(String yangIdentifier); static String restrictConsecutiveCapitalCase(String consecCapitalCaseRemover); static String addPrefix(String camelCasePrefix, YangToJavaNamingConflictUtil conflictResolver); static String applyCamelCaseRule(String[] stringArray, YangToJavaNamingConflictUtil conflictResolver); static String upperCaseConflictResolver(String[] stringArray,
                                                   YangToJavaNamingConflictUtil conflictResolver); static String getCamelCase(String yangIdentifier, YangToJavaNamingConflictUtil conflictResolver); static String getPrefixForIdentifier(YangToJavaNamingConflictUtil conflictResolver);  }