Config
to typed values.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | UNSET_INT
Use |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if any value or defaultValue is true, false for missing or explicit falseto get the value from config, String section the key is grouped within. section, String subsection name, such a remote or branch name. subsection, String name of the key to get. name, boolean default value to return if no value was present. defaultValue)
Deprecated
use
getBoolean(Config, String, String, String, Boolean)
instead
Get a boolean value from a git |
| public Boolean | Returns: true if any value or defaultValue is true, false for missing or explicit falseto get the value from config, String section the key is grouped within. section, String subsection name, such a remote or branch name. subsection, String name of the key to get. name, Boolean default value to return if no value was present. defaultValue)Get a boolean value from a git |
| public < type of the enum T extends Enum | Returns: the selected enumeration value, ordefaultValue.to get the value from config, T[] all possible values in the enumeration which should be
recognized. Typically all, String EnumType.values().section the key is grouped within. section, String subsection name, such a remote or branch name. subsection, String name of the key to get. name, T default value to return if no value was present. defaultValue)Parse an enumeration from a git |
| public int | Returns: an integer value from the configuration, or defaultValue.to get the value from config, String section the key is grouped within. section, String subsection name, such a remote or branch name. subsection, String name of the key to get. name, int default value to return if no value was present. defaultValue)
Deprecated
use
getInt(Config, String, String, String, Integer)
instead
Obtain an integer value from a git |
| public Integer | Returns: an integer value from the configuration, or defaultValue.to get the value from config, String section the key is grouped within. section, String subsection name, such a remote or branch name. subsection, String name of the key to get. name, Integer default value to return if no value was present. defaultValue)Obtain an integer value from a git |
| public int | Returns: an integer value from the configuration, or defaultValue.#UNSET_INT if unset.to get the value from config, String section the key is grouped within. section, String subsection name, such a remote or branch name. subsection, String name of the key to get. name, int minimal value minValue, int maximum value maxValue, int default value to return if no value was present. Use
defaultValue)#UNSET_INT to set the default to unset.
Deprecated
use
getIntInRange(Config, String, String, String, int, int, Integer)
instead
Obtain an integer value from a git |
| public Integer | Returns: an integer value from the configuration, or defaultValue.#UNSET_INT if unset.to get the value from config, String section the key is grouped within. section, String subsection name, such a remote or branch name. subsection, String name of the key to get. name, int minimal value minValue, int maximum value maxValue, Integer default value to return if no value was present. Use
defaultValue)#UNSET_INT to set the default to unset.Obtain an integer value from a git |
| public long | Returns: a long value from the configuration, or defaultValue.to get the value from config, String section the key is grouped within. section, String subsection name, such a remote or branch name. subsection, String name of the key to get. name, long default value to return if no value was present. defaultValue)
Deprecated
use
getLong(Config, String, String, String, Long)
instead
Obtain a long value from a git |
| public Long | Returns: a long value from the configuration, or defaultValue.to get the value from config, String section the key is grouped within. section, String subsection name, such a remote or branch name. subsection, String name of the key to get. name, Long default value to return if no value was present. defaultValue)Obtain a long value from a git |
| public default Path | getPath(Config
to get the path from. config, String section the key is in. section, String subsection the key is in, or null if not in a subsection. subsection, String the key name. name, FS to use to convert the string into a path. fs, File directory to resolve the path against if it is a relative
path. resolveAgainst, Path to return if no value was present defaultValue)Parse a string value from a git |
| public List | Returns: a possibly empty list oforg.sto get the list from config, String section the key is in. section, String subsection the key is in, or null if not in a subsection. subsection, String the key name. name) |
| public long | Returns: the value, ordefaultValue if not set, expressed in
units.to get the value from config, String section the key is in. section, String subsection the key is in, or null if not in a subsection. subsection, String the key name. name, long default value to return if no value was present. defaultValue, TimeUnit the units of wantUnit)defaultValue and the return value, as
well as the units to assume if the value does not contain an
indication of the units.
Deprecated
use
getTimeUnit(Config, String, String, String, Long, TimeUnit)
instead
Parse a numerical time unit, such as "1 minute", from a git
|
| public Long | Returns: the value, ordefaultValue if not set, expressed in
units.to get the value from config, String section the key is in. section, String subsection the key is in, or null if not in a subsection. subsection, String the key name. name, Long default value to return if no value was present. defaultValue, TimeUnit the units of wantUnit)defaultValue and the return value, as
well as the units to assume if the value does not contain an
indication of the units.Parse a numerical time unit, such as "1 minute", from a git
|
| UNSET_INT | back to summary |
|---|---|
| public static final int UNSET_INT Use
| |
| getBoolean | back to summary |
|---|---|
| public boolean getBoolean(Config config, String section, String subsection, String name, boolean defaultValue)
Deprecated use
Get a boolean value from a git
| |
| getBoolean | back to summary |
|---|---|
| public Boolean getBoolean(Config config, String section, String subsection, String name, Boolean defaultValue) Get a boolean value from a git
| |
| getEnum | back to summary |
|---|---|
| public <T extends Enum Parse an enumeration from a git
| |
| getInt | back to summary |
|---|---|
| public int getInt(Config config, String section, String subsection, String name, int defaultValue)
Deprecated use Obtain an integer value from a git
| |
| getInt | back to summary |
|---|---|
| public Integer getInt(Config config, String section, String subsection, String name, Integer defaultValue) Obtain an integer value from a git
| |
| getIntInRange | back to summary |
|---|---|
| public int getIntInRange(Config config, String section, String subsection, String name, int minValue, int maxValue, int defaultValue)
Deprecated use
Obtain an integer value from a git
| |
| getIntInRange | back to summary |
|---|---|
| public Integer getIntInRange(Config config, String section, String subsection, String name, int minValue, int maxValue, Integer defaultValue) Obtain an integer value from a git
| |
| getLong | back to summary |
|---|---|
| public long getLong(Config config, String section, String subsection, String name, long defaultValue)
Deprecated use Obtain a long value from a git
| |
| getLong | back to summary |
|---|---|
| public Long getLong(Config config, String section, String subsection, String name, Long defaultValue) Obtain a long value from a git
| |
| getPath | back to summary |
|---|---|
| public default Path getPath(Config config, String section, String subsection, String name, FS fs, File resolveAgainst, Path defaultValue) Parse a string value from a git Note this may throw
| |
| getRefSpecs | back to summary |
|---|---|
| public List | |
| getTimeUnit | back to summary |
|---|---|
| public long getTimeUnit(Config config, String section, String subsection, String name, long defaultValue, TimeUnit wantUnit)
Deprecated use
Parse a numerical time unit, such as "1 minute", from a git
| |
| getTimeUnit | back to summary |
|---|---|
| public Long getTimeUnit(Config config, String section, String subsection, String name, Long defaultValue, TimeUnit wantUnit) Parse a numerical time unit, such as "1 minute", from a git
| |