Package de.cuioss.test.generator.domain
Enum NameGenerators
- java.lang.Object
-
- java.lang.Enum<NameGenerators>
-
- de.cuioss.test.generator.domain.NameGenerators
-
- All Implemented Interfaces:
Serializable,Comparable<NameGenerators>
public enum NameGenerators extends Enum<NameGenerators>
Combines different variants of Generators for firstnames. The generatorsFIRSTNAMES_MALE_GERMAN,FIRSTNAMES_FEMALE_GERMANandFIRSTNAMES_ANY_GERMANare for visual mocks,UNIT_TESTSfor unit-tests.- Author:
- Oliver Wolff
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAMILY_NAMES_ENGLISHTop 10 names from U.S.FAMILY_NAMES_GERMANTop 10 names in WikipediaFIRSTNAMES_ANY_ENGLISHThe intersection ofFIRSTNAMES_MALE_ENGLISHandFIRSTNAMES_FEMALE_ENGLISHnamesFIRSTNAMES_ANY_GERMANThe intersection ofFIRSTNAMES_MALE_GERMANandFIRSTNAMES_FEMALE_GERMANnamesFIRSTNAMES_FEMALE_ENGLISHTop 10 female name in US 2014FIRSTNAMES_FEMALE_GERMANTop 10 female name in Germany 2014FIRSTNAMES_MALE_ENGLISHTop 10 male name in US 2014FIRSTNAMES_MALE_GERMANTop 10 male name in Germany 2014UNIT_TESTSTechnical String for unit-testing.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedGenerator<String>generator()static NameGeneratorsvalueOf(String name)Returns the enum constant of this type with the specified name.static NameGenerators[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIRSTNAMES_MALE_GERMAN
public static final NameGenerators FIRSTNAMES_MALE_GERMAN
Top 10 male name in Germany 2014
-
FIRSTNAMES_FEMALE_GERMAN
public static final NameGenerators FIRSTNAMES_FEMALE_GERMAN
Top 10 female name in Germany 2014
-
FIRSTNAMES_ANY_GERMAN
public static final NameGenerators FIRSTNAMES_ANY_GERMAN
The intersection ofFIRSTNAMES_MALE_GERMANandFIRSTNAMES_FEMALE_GERMANnames
-
FAMILY_NAMES_GERMAN
public static final NameGenerators FAMILY_NAMES_GERMAN
Top 10 names in Wikipedia
-
FIRSTNAMES_MALE_ENGLISH
public static final NameGenerators FIRSTNAMES_MALE_ENGLISH
Top 10 male name in US 2014
-
FIRSTNAMES_FEMALE_ENGLISH
public static final NameGenerators FIRSTNAMES_FEMALE_ENGLISH
Top 10 female name in US 2014
-
FIRSTNAMES_ANY_ENGLISH
public static final NameGenerators FIRSTNAMES_ANY_ENGLISH
The intersection ofFIRSTNAMES_MALE_ENGLISHandFIRSTNAMES_FEMALE_ENGLISHnames
-
FAMILY_NAMES_ENGLISH
public static final NameGenerators FAMILY_NAMES_ENGLISH
Top 10 names from U.S. Census Bureau
-
UNIT_TESTS
public static final NameGenerators UNIT_TESTS
Technical String for unit-testing. Min size is 1, max size 256
-
-
Method Detail
-
values
public static NameGenerators[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NameGenerators c : NameGenerators.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NameGenerators valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
generator
public TypedGenerator<String> generator()
- Returns:
- the concrete generator.
-
-