public class ToLazyCollection
extends java.lang.Object
Constructor and Description |
---|
ToLazyCollection() |
Modifier and Type | Method and Description |
---|---|
static <A> java.util.Collection<A> |
toConcurrentLazyCollection(java.util.Iterator<A> iterator) |
static <A> java.util.Collection<A> |
toConcurrentLazyCollection(java.util.stream.Stream<A> stream)
Lazily constructs a Collection from specified Stream.
|
static <A> java.util.Collection<A> |
toLazyCollection(java.util.Iterator<A> iterator) |
static <A> java.util.Collection<A> |
toLazyCollection(java.util.stream.Stream<A> stream)
Projects an immutable collection of this stream.
|
public static final <A> java.util.Collection<A> toLazyCollection(java.util.stream.Stream<A> stream)
public static final <A> java.util.Collection<A> toLazyCollection(java.util.Iterator<A> iterator)
public static final <A> java.util.Collection<A> toConcurrentLazyCollection(java.util.stream.Stream<A> stream)
stream
- public static final <A> java.util.Collection<A> toConcurrentLazyCollection(java.util.Iterator<A> iterator)