Package com.nt.udc.testnodechain.utils
Enum Class ConfigReader
- All Implemented Interfaces:
Serializable
,Comparable<ConfigReader>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlong
getConfigTime
(String configKey, long defaultValue, TimeUnit timeUnit) long
getConfigTime
(String configKey, long defaultValue, TimeUnit timeUnit, long rangeFrom, long rangeTo) getConfigTime
(String configKey, TimeUnit timeUnit) getConfiguration
(String configKey, String defaultValue) getIntConfiguration
(String configKey) int
getIntConfiguration
(String configKey, int defaultValue) static ConfigReader
Returns the enum constant of this class with the specified name.static ConfigReader[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENV
-
-
Field Details
-
MATCH_NUMBER_REGEX
- See Also:
-
-
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
-
getConfigTime
-
getConfigTime
-
getConfigTime
-
getConfiguration
-
getIntConfiguration
-
getIntConfiguration
-