| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 - end
public IntegerRange(Number from,
                    Number to,
                    Number step)
from - startto - endstep - increment
public IntegerRange(int from,
                    int to)
from - startto - end
public IntegerRange(int from,
                    int to,
                    int step)
from - startto - endstep - increment| Method Detail | 
|---|
public void run(UnaryProcedure<? super Integer> proc)
proc - UnaryProcedure to runpublic String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||