|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jblas.ranges.IntervalRange
public class IntervalRange
Range which varies from a given interval. Endpoint is exclusive! "new IntervalRange(0, 3)" enumerates 0, 1, 2.
Constructor Summary | |
---|---|
IntervalRange(int a,
int b)
Construct new interval range. |
Method Summary | |
---|---|
boolean |
hasMore()
More indices available? |
int |
index()
Consecutive numbering of current index. |
void |
init(int lower,
int upper)
Initialize Range to available indices |
int |
length()
Total number of indices. |
void |
next()
Increase counter. |
int |
value()
Get current index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntervalRange(int a, int b)
Method Detail |
---|
public void init(int lower, int upper)
Range
init
in interface Range
public int length()
Range
length
in interface Range
public void next()
Range
next
in interface Range
public int index()
Range
index
in interface Range
public int value()
Range
value
in interface Range
public boolean hasMore()
Range
hasMore
in interface Range
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |