Example usage for com.google.common.collect PeekingIterator interface-usage

List of usage examples for com.google.common.collect PeekingIterator interface-usage

Introduction

In this page you can find the example usage for com.google.common.collect PeekingIterator interface-usage.

Usage

From source file com.wrmsr.nativity.util.MultiPeekingIterator.java

public interface MultiPeekingIterator<E> extends PeekingIterator<E> {
    Iterable<E> peek(int size);
}

From source file org.calrissian.mango.collect.PeekingCloseableIterator.java

/**
 * A PeekingIterator which is also a CloseableIterator.
 * @param <T>
 */
public interface PeekingCloseableIterator<T> extends PeekingIterator<T>, CloseableIterator<T> {
}

From source file org.iq80.leveldb.impl.ReversePeekingIterator.java

public interface ReversePeekingIterator<T> extends ReverseIterator<T>, PeekingIterator<T> {
    T peekPrev();
}

From source file org.iq80.leveldb.impl.SeekingIterator.java

public interface SeekingIterator<K, V> extends PeekingIterator<Entry<K, V>> {
    /**
     * Repositions the iterator so the beginning of this block.
     */
    void seekToFirst();

From source file com.hippo.leveldb.impl.SeekingIterator.java

public interface SeekingIterator<K, V> extends PeekingIterator<Entry<K, V>> {
    /**
     * Repositions the iterator so the beginning of this block.
     */
    void seekToFirst();

From source file org.renyan.leveldb.impl.SeekingIterator.java

public interface SeekingIterator<K, V> extends PeekingIterator<Entry<K, V>> {
    /**
     * Repositions the iterator so the beginning of this block.
     */
    void seekToFirst();

From source file com.indeed.imhotep.ez.FTGSCallbackIterator.java

/**
 * Allows iterating over return values of the provided callback which is being run on each field/term/group tuple.
 * @author vladimir
 */
public class FTGSCallbackIterator<E> extends AbstractIterator<E> implements PeekingIterator<E> {
    // current FTGS iteration state cache

From source file com.complexible.common.collect.AbstractPeekingIterator.java

/**
 * Abstract implementation of {@link PeekingIterator} interface.
 * 
 * @author Evren Sirin
 */
public abstract class AbstractPeekingIterator<T> implements PeekingIterator<T> {

From source file com.complexible.common.collect.ArrayIterator.java

/**
 * <p>Class which adapts an array of objects to the Iterator interface, particularly to allow sub-arrays to be iterated over.</p>
 *
 * @param <T> the type of elements that will be iterated over
 * @author Michael Grove
 * @since 2.0

From source file com.palantir.atlasdb.keyvalue.partition.util.ClosablePeekingIterator.java

public final class ClosablePeekingIterator<T> extends ForwardingIterator<T>
        implements ClosableIterator<T>, PeekingIterator<T> {

    public static <V> ClosablePeekingIterator<V> of(ClosableIterator<V> it) {
        return new ClosablePeekingIterator<V>(it);
    }