Provider

public abstract class Provider implements ProviderInterface

Fields

PATTERN

public static final String PATTERN

RANDOM_INT

public static final String RANDOM_INT

SEPARATOR

public static final String SEPARATOR

format

protected String format

populator

protected PopulatorInterface populator

Methods

getIdentifier

public String getIdentifier()

getPersonName

protected String getPersonName(String type)

getPopulator

public PopulatorInterface getPopulator()

mergeArrays

protected String[] mergeArrays(String[] first, String[] second)

parseFormat

protected String parseFormat(String format, Callback callback)

randomDouble

protected Double randomDouble()

randomDouble

protected Double randomDouble(int minNumber, int maxNumber)

randomElement

protected String randomElement(String[] strings)

randomElement

protected String randomElement(String[] strings, int count)

randomElements

protected String[] randomElements(String[] strings)

randomElements

protected String[] randomElements(String[] strings, int count)

randomInt

protected Integer randomInt()

randomInt

protected Integer randomInt(int minNumber, int maxNumber)

setFormat

public Provider setFormat(String format)

setPopulator

public ProviderInterface setPopulator(PopulatorInterface populator)

toString

public String toString()