public class FirstnameRandomizer extends DataRandomizer
Copyright (C) 2015 JIOWA Business Solutions GmbH, Bettinastr. 30 , D-60325 Frankfurt am Main, Germany
Homepage: www.jiowa.de
All rights reserved.
Download: www.jiowa.de/download.html
License: www.jiowa.de/license.html
Modifier and Type | Field and Description |
---|---|
protected RandomNameSet |
boys
male names
|
protected RandomNameSet |
girls
female names
|
protected static FirstnameRandomizer |
INSTANCE |
COMMENT_SYMBOL
Modifier | Constructor and Description |
---|---|
protected |
FirstnameRandomizer() |
Modifier and Type | Method and Description |
---|---|
static FirstnameRandomizer |
getInstance()
Returns the singleton instance of this creator.
|
Firstname |
getRandom()
Creates a random first name (according to an also randomly generated gender).
|
Firstname |
getRandom(Gender gender)
Create a random firstname according to the given gender.
|
protected void |
initialize()
Reads the data from the resources and initalizes the creator.
|
createResourceReader, readResourceAsListOfLines, readResourceAsString
protected static final FirstnameRandomizer INSTANCE
protected RandomNameSet boys
protected RandomNameSet girls
public static FirstnameRandomizer getInstance()
public Firstname getRandom()
public Firstname getRandom(Gender gender)
gender
- random genderprotected void initialize()