T - The type of elements that are suitable to
numeric operations.public class Increment<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected IArithmetic<T1,T2,TResult> |
adaptor
The arithmetic adaptor.
|
protected T |
current
The current value.
|
protected T |
step
The step that increments the current value.
|
| Constructor and Description |
|---|
Increment(T start)
Constructs an Increment object from a specified initial value
convertible to T and an incremental step equal to one.
|
Increment(T start,
T step)
Constructs an Increment object from a specified initial value
convertible to T and an incremental step.
|
protected T current
protected T step
protected IArithmetic<T1,T2,TResult> adaptor
public Increment(T start)
start - The initial value to be incremented.Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.