Class CurrentMilliTimeGenerator
- java.lang.Object
-
- com.rapiddweller.benerator.util.AbstractGenerator<E>
-
- com.rapiddweller.benerator.util.AbstractNonNullGenerator<E>
-
- com.rapiddweller.benerator.util.ThreadSafeNonNullGenerator<java.lang.Long>
-
- com.rapiddweller.benerator.primitive.datetime.CurrentMilliTimeGenerator
-
- All Implemented Interfaces:
Generator<java.lang.Long>
,NonNullGenerator<java.lang.Long>
,com.rapiddweller.common.Resettable
,com.rapiddweller.common.ThreadAware
,java.io.Closeable
,java.lang.AutoCloseable
public class CurrentMilliTimeGenerator extends ThreadSafeNonNullGenerator<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 com.rapiddweller.benerator.util.AbstractGenerator
context, logger, state
-
-
Constructor Summary
Constructors Constructor Description CurrentMilliTimeGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
generate()
Generate e.java.lang.Class<java.lang.Long>
getGeneratedType()
Declares the type of the objects returned by the generate() method.-
Methods inherited from class com.rapiddweller.benerator.util.ThreadSafeNonNullGenerator
isParallelizable, isThreadSafe
-
Methods inherited from class com.rapiddweller.benerator.util.AbstractNonNullGenerator
generate
-
Methods inherited from class com.rapiddweller.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, getResultWrapper, init, reset, toString, wasInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.rapiddweller.benerator.Generator
close, init, wasInitialized
-
-
-
-
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.- Returns:
- the generated type
-
generate
public java.lang.Long generate()
Description copied from interface:NonNullGenerator
Generate e.- Specified by:
generate
in interfaceNonNullGenerator<java.lang.Long>
- Specified by:
generate
in classAbstractNonNullGenerator<java.lang.Long>
- Returns:
- the e
-
-