Provider

public abstract class Provider implements ProviderInterface

An implimentation of ProviderInterface.

Go to ProviderInterface to learn more.

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

Constructors

Provider

public Provider(PopulatorInterface populator)

Provider

public Provider(PopulatorInterface populator, String format)

Methods

getData

public String getData()

getPersonName

public String getPersonName()

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)

toString

public String toString()