public final class SharedModuloIndexerLight extends java.lang.Object implements IModuloIndexer
Constructor and Description |
---|
SharedModuloIndexerLight(int length)
Initializes indexer with a specified length
|
SharedModuloIndexerLight(int startingIndex,
int length)
Initializes indexer with a starting and the length
|
public SharedModuloIndexerLight(int length)
length
- The array lengthjava.lang.IllegalArgumentException
- When the maximum is less than or equal to minimum, or equal to Integer.MAX_VALUEpublic SharedModuloIndexerLight(int startingIndex, int length)
startingIndex
- The starting indexlength
- The array lengthjava.lang.IllegalArgumentException
- When the maximum is less than or equal to minimum, or equal to INTEGER.MAX_VALUEpublic int next()
next
in interface IModuloIndexer
public void reset()
reset
in interface IModuloIndexer
public int getValue()
getValue
in interface IModuloIndexer