List of utility methods to do String Ends With
boolean | endsWith(int[] data, int[] ends) ends With if (data == null || ends == null) { return false; if (data.length < ends.length) { return false; int start = data.length - ends.length; for (int i = 0; i < ends.length; i++) { ... |
boolean | endsWith(String a, char[] b) Equivalent of String.endsWith(String) using a char[] .
return matches(a, b, a.length());
|
boolean | endsWith(String baseString, String compareString) endWith if (baseString == null) return false; else return baseString.endsWith(compareString); |
boolean | endsWith(String filePath, String extension) ends With return filePath.toLowerCase().endsWith(extension);
|
boolean | endsWith(String fullString, String subString) Null Pointer proof String.endsWith() method. if (fullString == null) return false; if (subString == null) return false; return fullString.endsWith(subString); |
Boolean | endsWith(String haystack, String needle) __UNDOCUMENTED__ if ((haystack != null) && (needle != null)) { return new Boolean(haystack.endsWith(needle)); return Boolean.FALSE; |
boolean | endsWith(String in, String str) Tests if the given string ends with the specified suffix. char[] c = str.toCharArray(); for (char element : c) { if (in.endsWith(String.valueOf(element))) { return true; return false; |
boolean | endsWith(String inEnd, String inValue) NPE safe String startsWith if (inEnd == null && inValue == null) { return true; } else if (inEnd == null || inValue == null) { return false; return inValue.endsWith(inEnd); |
boolean | endsWith(String receiver, String... needles) ends With return endsWith(receiver, false, needles);
|
boolean | endsWith(String s, char c) An efficient method for checking if a string ends with a character. if (s != null) { int i = s.length(); if (i > 0) return s.charAt(i - 1) == c; return false; |