|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.solab.iso8583.impl.SimpleTraceGenerator
public class SimpleTraceGenerator
Simple implementation of a TraceNumberGenerator with an internal number that is increased in memory but is not stored anywhere.
Constructor Summary | |
---|---|
SimpleTraceGenerator(int initialValue)
Creates a new instance that will use the specified initial value. |
Method Summary | |
---|---|
int |
getLastTrace()
Returns the last number that was generated. |
int |
nextTrace()
Returns the next number in the sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleTraceGenerator(int initialValue)
initialValue
- a number between 1 and 999999.
IllegalArgumentException
- if the number is less than 1 or greater than 999999.Method Detail |
---|
public int getLastTrace()
TraceNumberGenerator
getLastTrace
in interface TraceNumberGenerator
public int nextTrace()
nextTrace
in interface TraceNumberGenerator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |