xapi.collect.impl.IteratorProxy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xapi-core-collect Show documentation
Show all versions of xapi-core-collect Show documentation
Core interfaces for our collections api.
package xapi.collect.impl;
import java.util.Map.Entry;
import javax.inject.Provider;
import xapi.collect.proxy.CollectionProxy;
public class IteratorProxy implements Provider>> {
private CollectionProxy proxy;
public IteratorProxy(CollectionProxy proxy) {
this.proxy = proxy;
}
@Override
public Iterable> get() {
return proxy.toMap(null).entrySet();
}
}