org.eclipse.jgit.lib.TypedConfigGetter that throws
java.lang.IllegalArgumentException on invalid values.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | getBoolean(Config
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, boolean default value to return if no value was present. defaultValue)Implements org. Get a boolean value from a git |
| public Boolean | getBoolean(Config
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, Boolean default value to return if no value was present. defaultValue)Implements org. Get a boolean value from a git |
| public <T extends Enum | getEnum(Config
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)Implements org. Parse an enumeration from a git |
| public int | getInt(Config
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)Implements org. Obtain an integer value from a git |
| public Integer | getInt(Config
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)Implements org. Obtain an integer value from a git |
| public int | getIntInRange(Config
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.Implements org. Obtain an integer value from a git |
| public Integer | getIntInRange(Config
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.Implements org. Obtain an integer value from a git |
| public long | getLong(Config
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)Implements org. Obtain a long value from a git |
| public Long | getLong(Config
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)Implements org. Obtain a long value from a git |
| public List | getRefSpecs(Config
to 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)Implements org. |
| public long | getTimeUnit(Config
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.Implements org. Parse a numerical time unit, such as "1 minute", from a git
|
| public Long | getTimeUnit(Config
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.Implements org. Parse a numerical time unit, such as "1 minute", from a git
|
| private static boolean | |
| private static <T> T | |
| private static IllegalArgumentException |
| DefaultTypedConfigGetter | back to summary |
|---|---|
| public DefaultTypedConfigGetter() | |
| getBoolean | back to summary |
|---|---|
| public boolean getBoolean(Config config, String section, String subsection, String name, boolean defaultValue) Implements org. Doc from org. Get a boolean value from a git
| |
| getBoolean | back to summary |
|---|---|
| public Boolean getBoolean(Config config, String section, String subsection, String name, Boolean defaultValue) Implements org. Doc from org. Get a boolean value from a git
| |
| getEnum | back to summary |
|---|---|
| public <T extends Enum Implements org. Doc from org. Parse an enumeration from a git
| |
| getInt | back to summary |
|---|---|
| public int getInt(Config config, String section, String subsection, String name, int defaultValue) Implements org. Doc from org. Obtain an integer value from a git
| |
| getInt | back to summary |
|---|---|
| public Integer getInt(Config config, String section, String subsection, String name, Integer defaultValue) Implements org. Doc from org. 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) Implements org. Doc from org. 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) Implements org. Doc from org. Obtain an integer value from a git
| |
| getLong | back to summary |
|---|---|
| public long getLong(Config config, String section, String subsection, String name, long defaultValue) Implements org. Doc from org. Obtain a long value from a git
| |
| getLong | back to summary |
|---|---|
| public Long getLong(Config config, String section, String subsection, String name, Long defaultValue) Implements org. Doc from org. Obtain a long value from a git
| |
| getRefSpecs | back to summary |
|---|---|
| public List Implements org. Doc from org. | |
| getTimeUnit | back to summary |
|---|---|
| public long getTimeUnit(Config config, String section, String subsection, String name, long defaultValue, TimeUnit wantUnit) Implements org. Doc from org. 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) Implements org. Doc from org. Parse a numerical time unit, such as "1 minute", from a git
| |
| match | back to summary |
|---|---|
| private static boolean match(String a, String... cases) | |
| neverNull | back to summary |
|---|---|
private static <T> T neverNull(T one)
| |
| notTimeUnit | back to summary |
|---|---|
| private static IllegalArgumentException notTimeUnit(String section, String subsection, String name, String valueString) | |