public class

JiraCollectionUtils

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

Summary

Public Constructors
JiraCollectionUtils()
Public Methods
static <T> Collection<T> convertIterableToCollection(Iterable<T> iterable)
Converts an iterable to a new collection if it isn't a collection already.
static String[] stringCollectionToStringArray(Collection<String> allValues)
Converts a String collection into a String array.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public JiraCollectionUtils ()

Public Methods

public static Collection<T> convertIterableToCollection (Iterable<T> iterable)

Converts an iterable to a new collection if it isn't a collection already. If it is already a collection then the same instance is returned.

Parameters
iterable The iterable to be converted
Returns
  • A collection of T

public static String[] stringCollectionToStringArray (Collection<String> allValues)

Converts a String collection into a String array.

Parameters
allValues The collection to convert
Returns
  • An array holding all the values of the supplied collection