com.atlassian.plugin.util
Class EfficientStringUtils
java.lang.Object
com.atlassian.plugin.util.EfficientStringUtils
public class EfficientStringUtils
- extends Object
String utility methods designed for memory / cpu efficiency
|
Method Summary |
static boolean |
endsWith(String src,
String... suffixes)
Test to see if a given string ends with some suffixes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EfficientStringUtils
public EfficientStringUtils()
endsWith
public static boolean endsWith(String src,
String... suffixes)
- Test to see if a given string ends with some suffixes. Avoids the cost
of concatenating the suffixes together
- Parameters:
src - the source string to be testedsuffixes - the set of suffixes
- Returns:
- true if src ends with the suffixes concatenated together
Copyright © 2015 Atlassian. All rights reserved.