- All Implemented Interfaces:
Serializable,Comparable<NameGenerators>,Constable
Combines different variants of Generators for firstnames. The generators
FIRSTNAMES_MALE_GERMAN, FIRSTNAMES_FEMALE_GERMAN and
FIRSTNAMES_ANY_GERMAN are for visual mocks, UNIT_TESTS for
unit-tests.- Author:
- Oliver Wolff
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTop 10 names from U.S.Top 10 names in WikipediaThe intersection ofFIRSTNAMES_MALE_ENGLISHandFIRSTNAMES_FEMALE_ENGLISHnamesThe intersection ofFIRSTNAMES_MALE_GERMANandFIRSTNAMES_FEMALE_GERMANnamesTop 10 female name in US 2014Top 10 female name in Germany 2014Top 10 male name in US 2014Top 10 male name in Germany 2014Technical String for unit-testing. -
Method Summary
Modifier and TypeMethodDescriptionstatic NameGeneratorsReturns the enum constant of this class with the specified name.static NameGenerators[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIRSTNAMES_MALE_GERMAN
Top 10 male name in Germany 2014 -
FIRSTNAMES_FEMALE_GERMAN
Top 10 female name in Germany 2014 -
FIRSTNAMES_ANY_GERMAN
The intersection ofFIRSTNAMES_MALE_GERMANandFIRSTNAMES_FEMALE_GERMANnames -
FAMILY_NAMES_GERMAN
Top 10 names in Wikipedia -
FIRSTNAMES_MALE_ENGLISH
Top 10 male name in US 2014 -
FIRSTNAMES_FEMALE_ENGLISH
Top 10 female name in US 2014 -
FIRSTNAMES_ANY_ENGLISH
The intersection ofFIRSTNAMES_MALE_ENGLISHandFIRSTNAMES_FEMALE_ENGLISHnames -
FAMILY_NAMES_ENGLISH
Top 10 names from U.S. Census Bureau -
UNIT_TESTS
Technical String for unit-testing. Min size is 1, max size 256
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
generator
- Returns:
- the concrete generator.
-