org.databene.benerator.primitive.datetime
Class CurrentMilliTimeGenerator

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<E>
      extended by org.databene.benerator.util.ThreadSafeGenerator<java.lang.Long>
          extended by org.databene.benerator.primitive.datetime.CurrentMilliTimeGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<java.lang.Long>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class CurrentMilliTimeGenerator
extends ThreadSafeGenerator<java.lang.Long>

Generates Long values that represent the current time in milliseconds.

Created: 17.11.2007 13:14:55

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, state
 
Constructor Summary
CurrentMilliTimeGenerator()
           
 
Method Summary
 java.lang.Long generate()
          Returns an instance of the generic type E.
 java.lang.Class<java.lang.Long> getGeneratedType()
          Declares the type of the objects returned by the generate() method.
 
Methods inherited from class org.databene.benerator.util.ThreadSafeGenerator
isParallelizable, isThreadSafe
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, init, reset, toString, wasInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CurrentMilliTimeGenerator

public CurrentMilliTimeGenerator()
Method Detail

getGeneratedType

public java.lang.Class<java.lang.Long> getGeneratedType()
Description copied from interface: Generator
Declares the type of the objects returned by the generate() method.


generate

public java.lang.Long generate()
Description copied from interface: Generator
Returns an instance of the generic type E.



Copyright © 2011. All Rights Reserved.