webit.script.util.collection.IteratorIterAdapter Maven / Gradle / Ivy
// Copyright (c) 2013, Webit Team. All Rights Reserved.
package webit.script.util.collection;
import java.util.Iterator;
/**
*
* @author Zqq
*/
public class IteratorIterAdapter extends AbstractIter {
private final Iterator iterator;
public IteratorIterAdapter(Iterator iterator) {
this.iterator = iterator;
}
@Override
protected E _next() {
return iterator.next();
}
public boolean hasNext() {
return iterator.hasNext();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy