public class BooleanGeneratedValueProvider extends BaseParrotProvider
Modifier and Type | Class and Description |
---|---|
static class |
BooleanGeneratedValueProvider.BooleanViewType |
BaseParrotProvider.ParrotProviderResult
counter, repeatValues, repetition
Constructor and Description |
---|
BooleanGeneratedValueProvider(BooleanProperties properties) |
Modifier and Type | Method and Description |
---|---|
static BooleanGeneratedValueProvider.BooleanViewType |
getBooleanViewTypeForDisplayString(String displayString) |
static GeneratorDescriptor |
getDefaultDescriptor() |
String |
getNewValue()
Call this when you want to force creation of absolutely new value (doesn't take into account provider settings
like repeat count)
|
protected String |
getNewValueInternal() |
protected String |
getRepresentation(long value) |
BooleanGeneratedValueProvider.BooleanViewType |
getRepresentationType() |
String |
getValue()
Call this when you want to get random value which takes into consideration all provider settings
|
void |
setIterationCount(int repetition) |
void |
setRepresentationType(BooleanGeneratedValueProvider.BooleanViewType type) |
tweetNextValue
getIterationCount, getRepeatValues, setRepeatValues
public BooleanGeneratedValueProvider(BooleanProperties properties)
public static GeneratorDescriptor getDefaultDescriptor()
public static BooleanGeneratedValueProvider.BooleanViewType getBooleanViewTypeForDisplayString(String displayString)
protected String getRepresentation(long value)
public void setIterationCount(int repetition)
setIterationCount
in class DataGeneratorProviderConfig
public BooleanGeneratedValueProvider.BooleanViewType getRepresentationType()
public void setRepresentationType(BooleanGeneratedValueProvider.BooleanViewType type)
public String getValue()
GeneratedDataValue
getValue
in interface GeneratedDataValue
getValue
in class BaseParrotProvider
protected String getNewValueInternal()
getNewValueInternal
in class BaseParrotProvider
public String getNewValue()
GeneratedDataValue
getNewValue
in interface GeneratedDataValue
getNewValue
in class BaseParrotProvider
Copyright © 2019. All rights reserved.