org.jdiameter.client.impl.helpers
Class UIDGenerator

java.lang.Object
  extended by org.jdiameter.client.impl.helpers.UIDGenerator

public class UIDGenerator
extends java.lang.Object

This class provide uid generator functionality


Constructor Summary
UIDGenerator()
          Create instance of class
UIDGenerator(long startValue)
          Create instance of class with predefined start value
 
Method Summary
 int nextInt()
          Return next uid as int
 long nextLong()
          Return next uid as long
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIDGenerator

public UIDGenerator()
Create instance of class


UIDGenerator

public UIDGenerator(long startValue)
Create instance of class with predefined start value

Parameters:
startValue - start value of counter
Method Detail

nextInt

public int nextInt()
Return next uid as int

Returns:
uid

nextLong

public long nextLong()
Return next uid as long

Returns:
uid as long


Copyright © 2008. All Rights Reserved.