Class EfficientStringUtils

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

public class EfficientStringUtils extends Object
String utility methods designed for memory / cpu efficiency
  • Constructor Details

    • EfficientStringUtils

      public EfficientStringUtils()
  • Method Details

    • 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