Example usage for java.util Iterator interface-usage

List of usage examples for java.util Iterator interface-usage

Introduction

In this page you can find the example usage for java.util Iterator interface-usage.

Usage

From source file com.netflix.aegisthus.io.sstable.IndexDatabaseScanner.java

/**
 * This class reads an SSTable index file and returns the offset for each key.
 */
public class IndexDatabaseScanner implements Iterator<IndexDatabaseScanner.OffsetInfo>, Closeable {
    private final CountingInputStream countingInputStream;
    private final DataInputStream input;

From source file de.dhke.projects.cutil.collections.immutable.ImmutableIterator.java

public class ImmutableIterator<T> implements Iterator<T>, IDecorator<Iterator<T>> {
    private final Iterator<T> _baseIter;
    private final Transformer<T, T> _valueTransformer;

    public ImmutableIterator(final Iterator<T> baseIter, final Transformer<T, T> valueTransformer) {
        _baseIter = baseIter;

From source file io.wcm.wcm.ui.extjs.provider.impl.util.PageIterator.java

/**
 * Implements an iterator that returns page objects.
 * If it hits a resource of with primary type sling:Folder or sling:OrderedFolder it supports them as well returning a
 * simulates page object for them.
 */
public final class PageIterator implements Iterator<Page> {

From source file com.mewmew.fairy.v1.json.SimpleJsonIterator.java

public class SimpleJsonIterator implements Iterator<Map<String, Object>> {
    private final LineIterator delegate;
    private final ObjectMapper mapper = new ObjectMapper();

    public SimpleJsonIterator(LineIterator delegate) {
        this.delegate = delegate;

From source file de.dhke.projects.cutil.collections.iterator.MultiMapPairIterator.java

/**
 *
 * @author Peter Wullinger <peter.wullinger@uni-bamberg.de>
 */
public class MultiMapPairIterator<K, V> implements Iterator<Pair<K, V>> {
    private final Iterator<Map.Entry<K, V>> _entryIter;

From source file edu.cmu.lti.oaqa.knn4qa.collection_reader.YahooAnswersStreamParser.java

/**
 * An XML-stream based iterator over Yahoo-Answers collection. Modeled
 * after the code of Di Wang : 
 * https://github.com/Digo/lapps-gigaword-lucene/blob/master/src/main/java/edu/cmu/lti/oaqa/lapps/GwDocIterator.java
 * 
 * @author Leonid Boytsov

From source file org.cloudata.core.client.RowIterator.java

/**
 * @author jindolk
 *
 */
public class RowIterator implements Iterator<Row> {
    private static final Log LOG = LogFactory.getLog(RowIterator.class.getName());

From source file org.epnoi.uia.harvester.wikipedia.parse.de.tudarmstadt.ukp.wikipedia.api.CategoryDescendantsIterator.java

/**
 * An iterator over category objects retrieved by Category.getDescendants()
 * @author zesch
 *
 */
public class CategoryDescendantsIterator implements Iterator<Category> {

From source file ArrayIterator.java

/** 
 * Implements an {@link java.util.Iterator Iterator} over any array.
 * 
 * The array can be either an array of object or of primitives. If you know 
 * that you have an object array, the 
 * {@link org.apache.commons.collections.iterators.ObjectArrayIterator ObjectArrayIterator}

From source file ArrayIterator.java

/** 
 * Implements an {@link java.util.Iterator Iterator} over any array.
 * <p>
 * The array can be either an array of object or of primitives. If you know 
 * that you have an object array, the 
 * {@link org.apache.commons.collections.iterators.ObjectArrayIterator ObjectArrayIterator}