
org.tenidwa.collections.utils.StreamIterable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of collections-utils Show documentation
Show all versions of collections-utils Show documentation
Collection utilities for Java 8
The newest version!
package org.tenidwa.collections.utils;
import java.util.Iterator;
import java.util.stream.Stream;
public final class StreamIterable implements Iterable {
private final Stream stream;
public StreamIterable(Stream stream) {
this.stream = stream;
}
@Override
public Iterator iterator() {
return stream.iterator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy