public final class

JiraStringUtils

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

Class Overview

JIRA String utilitites.

Summary

Constants
int EXPECTED_ELEMENT_LENGTH
Public Methods
static String asString(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).
static Option<Long> toLong(String maybeLong)
Tries to parse a String as a Long.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int EXPECTED_ELEMENT_LENGTH

Constant Value: 8 (0x00000008)

Public Methods

public static String asString (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

public static 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.