ucar.ma2.RangeIterator Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 1998-2018 John Caron and University Corporation for Atmospheric Research/Unidata
* See LICENSE for license information.
*/
package ucar.ma2;
import java.util.Iterator;
/**
* Generalization of Range (which is restricted to (start:stop:stride).
* RangeIterator is over an arbitrary set of integers from the set {0..fullSize-1}.
*
* @author John
* @since 8/19/2015
*/
public interface RangeIterator extends Iterable {
@Override
Iterator iterator();
/** The number of index in this iterator. */
int length();
/** The name of this Range iterator. */
String getName();
/** @deprecated use copyWithName(). */
@Deprecated
RangeIterator setName(String name);
/** Make a copy with a different name. */
RangeIterator copyWithName(String name);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy