public static class EnclosedIterable.ListResolver<T> extends Object implements Resolver<EnclosedIterable<T>,List<T>>
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 and Description |
---|
ListResolver() |
Modifier and Type | Method and Description |
---|---|
List<T> |
apply(EnclosedIterable<T> iterable)
Get an
ArrayList of the contents of the supplied EnclosedIterable |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, compose, identity
public List<T> apply(EnclosedIterable<T> iterable)
ArrayList
of the contents of the supplied EnclosedIterable
apply
in interface Resolver<EnclosedIterable<T>,List<T>>
apply
in interface java.util.function.Function<EnclosedIterable<T>,List<T>>
iterable
- the input object to resolve from.ArrayList
containing all elements of the iterable.Copyright © 2002-2024 Atlassian. All Rights Reserved.