Class JiraStringUtils

java.lang.Object
com.atlassian.jira.util.lang.JiraStringUtils

public final class JiraStringUtils extends Object
JIRA String utilitites.
Since:
v4.2
  • Field Details

    • EXPECTED_ELEMENT_LENGTH

      public static final int EXPECTED_ELEMENT_LENGTH
      See Also:
  • Method Details

    • asString

      public static String asString(@Nullable Object... elements)
      Concatenate array of objects into a string in accordance with JLS $15.18.1 (except that primitive values are not accepted by this method other than by autoboxing to primitive wrappers).
      Parameters:
      elements - elements to convert
      Returns:
      string resulting from concatenating elements
    • toLong

      public static io.atlassian.fugue.Option<Long> toLong(String maybeLong)
      Tries to parse a String as a Long. Returns some Long if successful, otherwise none.
      Parameters:
      maybeLong - String to parse into Long
      Returns:
      some(long) if successful, none() otherwise.