Class Config
java.lang.Object
dev.pfaff.glass.Config
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
getEnvFlag
(String name, boolean defaultValue) Parses the value of the environment variablename
as a boolean wherefalse
is parsed from0
andtrue
is parsed from1
.
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
getEnvFlag
Parses the value of the environment variablename
as a boolean wherefalse
is parsed from0
andtrue
is parsed from1
.- Parameters:
name
- the name of the environment variable.defaultValue
- the value that should be returned if the environment variable is unset.- Returns:
true
if the variable is set to1
,false
if the variable is set to0
, ordefaultValue
otherwise.
-