- Type Parameters:
T
- type of the provided object
- All Superinterfaces:
Collection<T>
,Iterable<T>
,List<T>
,SequencedCollection<T>
Wrapper for list of
LazyValue
s while keeping laziness.-
Method Summary
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArray
-
Method Details
-
add
Add another lazy item to the list.- Parameters:
supplier
- to be invoke only when necessary
-
create
Create wrapper from provided list ofLazyValue
s.- Type Parameters:
T
- type of the provided object- Parameters:
lazyValues
- to be wrapped seamlessly while keeping laziness- Returns:
- List invoking underlined
LazyValue
s only when raw value is needed.
-