org.databene.benerator.distribution.sequence
Class RandomLongGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<E>
org.databene.benerator.primitive.number.AbstractNumberGenerator<java.lang.Long>
org.databene.benerator.distribution.sequence.RandomLongGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<java.lang.Long>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class RandomLongGenerator
- extends AbstractNumberGenerator<java.lang.Long>
Long Generator that implements a 'random' Long Sequence.
Created: 03.09.2006 09:53:01
- Author:
- Volker Bergmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_MIN
public static final long DEFAULT_MIN
- See Also:
- Constant Field Values
DEFAULT_MAX
public static final long DEFAULT_MAX
- See Also:
- Constant Field Values
RandomLongGenerator
public RandomLongGenerator()
RandomLongGenerator
public RandomLongGenerator(long min,
java.lang.Long max)
RandomLongGenerator
public RandomLongGenerator(long min,
java.lang.Long max,
long precision)
init
public void init(GeneratorContext context)
- Specified by:
init in interface Generator<java.lang.Long>- Overrides:
init in class AbstractNumberGenerator<java.lang.Long>
generate
public java.lang.Long generate()
- Description copied from interface:
Generator
- Returns an instance of the generic type E.
generate
public static long generate(long min,
long max,
long precision)
Copyright © 2011. All Rights Reserved.