com.github.blahord.bettercollections.compatibility.ReducibleJavaIterable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bettercollections Show documentation
Show all versions of bettercollections Show documentation
An collection framework that eliminates some design flaws in Javas CollectionFramework.
package com.github.blahord.bettercollections.compatibility;
import com.github.blahord.bettercollections.iterable.ReducibleIterable;
import java.util.Iterator;
import static com.github.blahord.bettercollections.compatibility.IteratorWrappers.asReducibleJavaUtilIterator;
class ReducibleJavaIterable extends JavaIterable {
private final ReducibleIterable extends T> privateIterable;
public ReducibleJavaIterable(ReducibleIterable extends T> privateIterable) {
super(privateIterable);
this.privateIterable = privateIterable;
}
@Override
public Iterator iterator() {
return asReducibleJavaUtilIterator(privateIterable.iterator());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy