com.atlassian.plugin.util
Class EfficientStringUtils

java.lang.Object
  extended by com.atlassian.plugin.util.EfficientStringUtils

public class EfficientStringUtils
extends Object

String utility methods designed for memory / cpu efficiency


Constructor Summary
EfficientStringUtils()
           
 
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
 

Constructor Detail

EfficientStringUtils

public EfficientStringUtils()
Method Detail

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 tested
suffixes - the set of suffixes
Returns:
true if src ends with the suffixes concatenated together


Copyright © 2010 Atlassian. All Rights Reserved.