Package com.atlassian.jira.util.collect
Class EnclosedIterable.ListResolver<T>
java.lang.Object
com.atlassian.jira.util.collect.EnclosedIterable.ListResolver<T>
- All Implemented Interfaces:
Function<EnclosedIterable<T>,
,List<T>> Resolver<EnclosedIterable<T>,
,List<T>> Function<EnclosedIterable<T>,
List<T>>
- Enclosing interface:
- EnclosedIterable<T>
public static class EnclosedIterable.ListResolver<T>
extends Object
implements Resolver<EnclosedIterable<T>,List<T>>
Utility class for transforming a
EnclosedIterable
into a List
. Generally you only want to do
this when the size of the iterable is small as it loads all the elements into memory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(EnclosedIterable<T> iterable) Get anArrayList
of the contents of the suppliedEnclosedIterable
-
Constructor Details
-
ListResolver
public ListResolver()
-
-
Method Details
-
apply
Get anArrayList
of the contents of the suppliedEnclosedIterable
- Specified by:
apply
in interfaceFunction<EnclosedIterable<T>,
List<T>> - Specified by:
apply
in interfaceFunction<EnclosedIterable<T>,
List<T>> - Specified by:
apply
in interfaceResolver<EnclosedIterable<T>,
List<T>> - Parameters:
iterable
- the input object to resolve from.- Returns:
- a mutable
ArrayList
containing all elements of the iterable.
-