org.jsmpp.util
Class Sequence

java.lang.Object
  extended by org.jsmpp.util.Sequence

public class Sequence
extends java.lang.Object

Sequence number that able to rolling.

Since:
2.0
Version:
1.0
Author:
uudashr

Field Summary
private  int value
           
 
Constructor Summary
Sequence(int start)
           
 
Method Summary
 int currentValue()
           
 int nextValue()
          Return the next value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private int value
Constructor Detail

Sequence

public Sequence(int start)
Parameters:
start - is the start/init value of the sequence.
Method Detail

nextValue

public int nextValue()
Return the next value.

Returns:
the next value.

currentValue

public int currentValue()
Returns:
the current value.