|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.webgraph.IntIntervalSequenceIterator
public class IntIntervalSequenceIterator
An iterator returning the integers contained in a sequence of intervals.
| Constructor Summary | |
|---|---|
IntIntervalSequenceIterator(int[] left,
int[] len)
Creates a new interval-sequence iterator by specifying arrays of left extremes and lengths. |
|
IntIntervalSequenceIterator(int[] left,
int[] len,
int n)
Creates a new interval-sequence iterator by specifying arrays of left extremes and lengths, and the number of valid entries. |
|
| Method Summary | |
|---|---|
int |
nextInt()
The next integer returned by this iterator, or the special marker if this iterator is exhausted. |
int |
skip(int n)
Skips a given number of elements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntIntervalSequenceIterator(int[] left,
int[] len)
left - an array containing the left extremes of the intervals generating this iterator.len - an array (of the same length as left) containing the number of integers (greater than zero) in each interval.
public IntIntervalSequenceIterator(int[] left,
int[] len,
int n)
left - an array containing the left extremes of the intervals generating this iterator.len - an array (of the same length as left) containing the number of integers (greater than zero) in each interval.n - the number of valid entries in left and len.| Method Detail |
|---|
public int nextInt()
LazyIntIterator
nextInt in interface LazyIntIteratorpublic int skip(int n)
LazyIntIterator
skip in interface LazyIntIteratorn - the number of elements to skip.
n if this iterator is exhausted).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||