Class Overview
Iterates over a start and end value by a stepping function. Typically used by
benchmarks to supply a range of values over an integral parameter, such as
size or length.
Summary
Public Constructors |
|
IntRange(int start, int end, Operator operator, int step)
Creates a new range that produces Iterators which begin at
start , end at end and increment by the
stepping function described by operator and
step .
|
Public Methods |
IntRange.IntRangeIterator
|
iterator()
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
java.lang.Iterable
|
Public Constructors
public
IntRange
(int start, int end, Operator operator, int step)
Creates a new range that produces Iterators which begin at
start
, end at end
and increment by the
stepping function described by operator
and
step
.
Parameters
start
| Initial starting value, inclusive. |
end
| Ending value, inclusive. |
operator
| The function used to step. |
step
| The amount to step by, for each iteration.
|
Public Methods
public
IntRange.IntRangeIterator
iterator
()