public class

EfficientStringUtils

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

Class Overview

String utility methods designed for memory / cpu efficiency

Summary

Public Constructors
EfficientStringUtils()
Public Methods
static boolean endsWith(String src, String... suffixes)
Test to see if a given string ends with some suffixes.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EfficientStringUtils ()

Public Methods

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