|
||||||||||
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<Long> org.apache.commons.functor.generator.util.LongRange
public final class LongRange
A generator for the range from (inclusive) to to (exclusive).
Constructor Summary | |
---|---|
LongRange(long from,
long to)
Create a new LongRange. |
|
LongRange(long from,
long to,
long step)
Create a new LongRange. |
|
LongRange(Number from,
Number to)
Create a new LongRange. |
|
LongRange(Number from,
Number to,
Number step)
Create a new LongRange. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
void |
run(UnaryProcedure<? super Long> 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 LongRange(Number from, Number to)
from
- startto
- endpublic LongRange(Number from, Number to, Number step)
from
- startto
- endstep
- incrementpublic LongRange(long from, long to)
from
- startto
- endpublic LongRange(long from, long to, long step)
from
- startto
- endstep
- incrementMethod Detail |
---|
public void run(UnaryProcedure<? super Long> 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 |