public class Bootstrap extends Object
Using a builder(), you can configure the following fields:
| Modifier and Type | Class and Description |
|---|---|
static class |
Bootstrap.Builder |
| Constructor and Description |
|---|
Bootstrap() |
| Modifier and Type | Method and Description |
|---|---|
static Bootstrap.Builder |
builder()
Creates a Builder that will let you configure a Fairy's fields one by one.
|
static Fairy |
create()
Use this factory method to create dataset containing default jfairy.yml and jfairy_{langCode}.yml files
merged with custom files with the same name
|
static Fairy |
create(Locale locale)
Use this factory method to create dataset containing default jfairy.yml and jfairy_{langCode}.yml files
merged with custom files with the same name
|
static Fairy |
create(Locale locale,
String dataFilePrefix)
Use this factory method to create your own dataset overriding bundled one
|
static Fairy |
create(com.google.inject.Provider<DataMaster> dataMaster,
Locale locale) |
static Fairy |
createFairy(DataMaster dataMaster,
Locale locale,
RandomGenerator randomGenerator) |
public static Fairy createFairy(DataMaster dataMaster, Locale locale, RandomGenerator randomGenerator)
public static Bootstrap.Builder builder()
public static Fairy create()
public static Fairy create(Locale locale)
locale - will be used to assess langCode for data filepublic static Fairy create(Locale locale, String dataFilePrefix)
locale - will be used to assess langCode for data filedataFilePrefix - prefix of the data file - final pattern will be jfairy.yml and dataFilePrefix_{langCode}.ymlpublic static Fairy create(com.google.inject.Provider<DataMaster> dataMaster, Locale locale)
Copyright © 2022. All rights reserved.