public final class IntegerRange extends BaseGenerator<Integer>
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
run(UnaryProcedure<? super Integer> proc)
Generators must implement this method.
|
String |
toString() |
getWrappedGenerator, isStopped, stop, to, to, toCollectionpublic 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 - incrementpublic void run(UnaryProcedure<? super Integer> proc)
proc - UnaryProcedure to runCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.