|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.helpers.IndexArray
An IndexArray is an array of (wrapped) counters. It can be used like an iterator.
Field Summary | |
int[] |
counters
|
int |
idx
|
int |
n
|
int[] |
ranges
|
Constructor Summary | |
IndexArray(int[] ranges)
|
Method Summary | |
boolean |
hasNext()
|
boolean |
hasPrev()
|
int |
lastIndexChanged()
|
int |
next()
|
int |
prev()
|
static void |
test()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final int n
public final int[] ranges
public int[] counters
public int idx
Constructor Detail |
public IndexArray(int[] ranges)
Method Detail |
public int lastIndexChanged()
public boolean hasNext()
public boolean hasPrev()
public int next()
public int prev()
public static void test()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |