com.atlassian.jira.util.collect
Class EnclosedIterable.ListResolver<T>
java.lang.Object
com.atlassian.jira.util.collect.EnclosedIterable.ListResolver<T>
- All Implemented Interfaces:
- Resolver<EnclosedIterable<T>,List<T>>, com.atlassian.util.concurrent.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnclosedIterable.ListResolver
public EnclosedIterable.ListResolver()
get
public List<T> get(EnclosedIterable<T> iterable)
- Get an
ArrayList
of the contents of the supplied EnclosedIterable
- Specified by:
get
in interface Resolver<EnclosedIterable<T>,List<T>>
- Specified by:
get
in interface com.atlassian.util.concurrent.Function<EnclosedIterable<T>,List<T>>
- Parameters:
iterable
- the input object to resolve from.
- Returns:
- a mutable
ArrayList
containing all elements of the iterable.
Copyright © 2002-2011 Atlassian. All Rights Reserved.