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

org.opentripplanner.transit.raptor.api.transit.IntIterator Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.transit.raptor.api.transit;


/**
 * Iterator for fast iteration over int base type integers without
 * boxing and unboxing.
 */
public interface IntIterator {
    /**
     * Retrieve the next int in sequence. SHOULD only be called ONCE per iteration,
     * the implementation can optimize the iterator implementation by incrementing the
     * value in this method.
     */
    int next();

    /**
     * @return true if there is more int values in the sequence.
     */
    boolean hasNext();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy