|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.databene.benerator.util.AbstractGenerator<E>
org.databene.benerator.util.ThreadSafeGenerator<java.lang.Boolean>
org.databene.benerator.primitive.BooleanGenerator
public class BooleanGenerator
Generates boolean values with a configurable quota of true values.
Created: 09.06.2006 20:03:18
| Field Summary |
|---|
| Fields inherited from class org.databene.benerator.util.AbstractGenerator |
|---|
context, state |
| Constructor Summary | |
|---|---|
BooleanGenerator()
Initializes the generator to a trueQuota of 50% |
|
BooleanGenerator(double trueQuota)
Initializes the generator to a trueQuota |
|
| Method Summary | |
|---|---|
java.lang.Boolean |
generate()
generates boolean values with a quota of true values according to the trueQuota property |
java.lang.Class<java.lang.Boolean> |
getGeneratedType()
Declares the type of the objects returned by the generate() method. |
double |
getTrueQuota()
Sets the quota of true values to create |
void |
setTrueQuota(double trueQuota)
Returns the quota of true values to create |
java.lang.String |
toString()
|
| 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, wasInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanGenerator()
public BooleanGenerator(double trueQuota)
| Method Detail |
|---|
public double getTrueQuota()
public void setTrueQuota(double trueQuota)
public java.lang.Class<java.lang.Boolean> getGeneratedType()
Generator
public java.lang.Boolean generate()
public java.lang.String toString()
toString in class AbstractGenerator<java.lang.Boolean>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||