Enum Class Config.Props
- All Implemented Interfaces:
Serializable
,Comparable<Config.Props>
,Constable
- Enclosing class:
Config
Enum che rappresenta le chiavi di configurazione supportate nel file
config.properties
.
Ogni elemento fornisce un alias sicuro per accedere ai valori corrispondenti tramite Config.get(Props)
.
DB_URL
→ URL del databasePW_CHAR_MIN_LENGTH
→ lunghezza minima della passwordUSR_CHAR_MAX_LENGTH
→ lunghezza massima del nome utenteSESSION_FILE
→ percorso file sessioneINTERRUPTED_SESSION_FILE
→ percorso file sessione interrottaDOCUMENTS_DIR
→ directory contenente i documenti del gioco
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
static Config.Props
Returns the enum constant of this class with the specified name.static Config.Props[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DB_URL
-
PW_CHAR_MIN_LENGTH
-
USR_CHAR_MAX_LENGTH
-
SESSION_FILE
-
INTERRUPTED_SESSION_FILE
-
DOCUMENTS_DIR
-
-
Field Details
-
key
-
-
Constructor Details
-
Props
Costruttore diProps
: costruisce l'enum associando la chiave stringa del fileconfig.properties
.- Parameters:
key
- chiave testuale associata a una proprietà
-
-
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
-
get
-