|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.ints.AbstractIntIterator
it.unimi.di.mg4j.tool.Combine.GammaCodedIntIterator
protected static final class Combine.GammaCodedIntIterator
A partial IntIterator
implementation based on γ-coded integers.
Instances of this class adapt an InputBitStream
to an IntIterator
by reading γ-coded integers. The implementation is partial because hasNext()
always returns true—the user must know in advance how many times nextInt()
may be safely called.
Combine.sizes(int)
Constructor Summary | |
---|---|
Combine.GammaCodedIntIterator(InputBitStream inputBitStream)
|
Method Summary | |
---|---|
void |
close()
Delegates to the underlying InputBitStream . |
boolean |
hasNext()
Returns true. |
int |
nextInt()
Returns the next γ-coded integer in the underlying InputBitStream . |
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntIterator |
---|
next, remove, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Combine.GammaCodedIntIterator(InputBitStream inputBitStream)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<Integer>
public int nextInt()
InputBitStream
.
nextInt
in interface IntIterator
nextInt
in class AbstractIntIterator
InputBitStream.readGamma()
.public void close() throws IOException
InputBitStream
.
close
in interface Closeable
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |