de.aitools.aq.util
Class RandomGenerator

java.lang.Object
  extended by de.aitools.aq.util.RandomGenerator

public class RandomGenerator
extends java.lang.Object


Constructor Summary
RandomGenerator()
           
 
Method Summary
static
<V extends Value>
java.util.List<Record<V>>
nextNumberedRecords(java.lang.Class<V> clazz, int count, int startId)
           
static
<V extends Value>
Record<V>
nextRecord(java.lang.Class<V> clazz)
           
static
<V extends Value>
java.util.List<Record<V>>
nextRecords(java.lang.Class<V> clazz, int count)
           
static java.lang.String nextString(java.lang.String prefix)
           
static
<V extends Value>
V
nextValue(java.lang.Class<V> clazz)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomGenerator

public RandomGenerator()
Method Detail

nextValue

public static <V extends Value> V nextValue(java.lang.Class<V> clazz)
                                 throws java.lang.InstantiationException,
                                        java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

nextString

public static final java.lang.String nextString(java.lang.String prefix)

nextRecord

public static <V extends Value> Record<V> nextRecord(java.lang.Class<V> clazz)
                                          throws java.lang.InstantiationException,
                                                 java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

nextRecords

public static <V extends Value> java.util.List<Record<V>> nextRecords(java.lang.Class<V> clazz,
                                                                      int count)
                                                           throws java.lang.InstantiationException,
                                                                  java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

nextNumberedRecords

public static <V extends Value> java.util.List<Record<V>> nextNumberedRecords(java.lang.Class<V> clazz,
                                                                              int count,
                                                                              int startId)
                                                                   throws java.lang.InstantiationException,
                                                                          java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException