|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.functor.generator.BaseGenerator<Integer> org.apache.commons.functor.generator.util.IntegerRange
public final class IntegerRange
A generator for the range from (inclusive) to to (exclusive).
Constructor Summary | |
---|---|
IntegerRange(int from,
int to)
Create a new IntegerRange. |
|
IntegerRange(int from,
int to,
int step)
Create a new IntegerRange. |
|
IntegerRange(Number from,
Number to)
Create a new IntegerRange. |
|
IntegerRange(Number from,
Number to,
Number step)
Create a new IntegerRange. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
void |
run(UnaryProcedure<? super Integer> proc)
Generators must implement this method. |
String |
toString()
|
Methods inherited from class org.apache.commons.functor.generator.BaseGenerator |
---|
getWrappedGenerator, isStopped, stop, to, to, toCollection |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntegerRange(Number from, Number to)
from
- startto
- endpublic IntegerRange(Number from, Number to, Number step)
from
- startto
- endstep
- incrementpublic IntegerRange(int from, int to)
from
- startto
- endpublic IntegerRange(int from, int to, int step)
from
- startto
- endstep
- incrementMethod Detail |
---|
public void run(UnaryProcedure<? super Integer> proc)
proc
- UnaryProcedure to runpublic String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |