org.databene.benerator.primitive.datetime
Class CurrentNanoTimeGenerator

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.CurrentNanoTimeGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<java.lang.Long>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

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

Generates Long objects that represent the current system time in nanoseconds since 1970-01-01.

Created: 17.11.2007 13:08:47

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, state
 
Constructor Summary
CurrentNanoTimeGenerator()
           
 
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

CurrentNanoTimeGenerator

public CurrentNanoTimeGenerator()
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.