All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.blahord.bettercollections.compatibility.ReducibleJavaIterable Maven / Gradle / Ivy

Go to download

An collection framework that eliminates some design flaws in Javas CollectionFramework.

There is a newer version: 1.1.0
Show newest version
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 privateIterable;

    public ReducibleJavaIterable(ReducibleIterable privateIterable) {
        super(privateIterable);
        this.privateIterable = privateIterable;
    }

    @Override
    public Iterator iterator() {
        return asReducibleJavaUtilIterator(privateIterable.iterator());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy