Package com.atlassian.jira.util.lang
Class JiraStringUtils
java.lang.Object
com.atlassian.jira.util.lang.JiraStringUtils
JIRA String utilitites.
- Since:
- v4.2
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringConcatenate 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 io.atlassian.fugue.Option<Long> Tries to parse a String as a Long.
-
Field Details
-
EXPECTED_ELEMENT_LENGTH
public static final int EXPECTED_ELEMENT_LENGTH- See Also:
-
-
Method Details
-
asString
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
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.
-