public final class JiraCollectionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Collection<T> |
convertIterableToCollection(Iterable<T> iterable)
Converts an iterable to a new collection if it isn't a collection already.
|
static <T> List<T> |
listify(Optional<T> optional)
Converts the given optional into a list.
|
static <T> java.util.stream.Stream<T> |
streamFromOptional(Optional<T> optional)
Turns an Optional
|
static String[] |
stringCollectionToStringArray(Collection<String> allValues)
|
public static String[] stringCollectionToStringArray(Collection<String> allValues)
allValues
- The collection to convertpublic static <T> Collection<T> convertIterableToCollection(Iterable<T> iterable)
T
- The type being iterated overiterable
- The iterable to be convertedT
public static <T> java.util.stream.Stream<T> streamFromOptional(Optional<T> optional)
Copyright © 2002-2019 Atlassian. All Rights Reserved.