implicit final class ConfigurationOptionalWrapper[T <: Configuration] extends AnyVal
The class wraps the Configuration interface in order to provide extension methods.
- T
A specific type implementing the Configuration interface
- Alphabetic
- By Inheritance
- ConfigurationOptionalWrapper
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ConfigurationOptionalWrapper(conf: T)
- conf
A configuration instance
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val conf: T
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getOptionalBigDecimal: (String) ⇒ Option[BigDecimal]
Gets a value of big decimal configuration property.
Gets a value of big decimal configuration property.
- returns
A Some wrapped value of big decimal configuration property if exists, otherwise None.
-
def
getOptionalBoolean: (String) ⇒ Option[Boolean]
Gets a value of boolean configuration property.
Gets a value of boolean configuration property.
- returns
A Some wrapped value of boolean configuration property if exists, otherwise None.
-
def
getOptionalByte: (String) ⇒ Option[Byte]
Gets a value of byte configuration property.
Gets a value of byte configuration property.
- returns
A Some wrapped value of byte configuration property if exists, otherwise None.
-
def
getOptionalDouble: (String) ⇒ Option[Double]
Gets a value of double configuration property.
Gets a value of double configuration property.
- returns
A Some wrapped value of double configuration property if exists, otherwise None.
-
def
getOptionalFloat: (String) ⇒ Option[Float]
Gets a value of float configuration property.
Gets a value of float configuration property.
- returns
A Some wrapped value of float configuration property if exists, otherwise None.
-
def
getOptionalInt: (String) ⇒ Option[Int]
Gets a value of int configuration property.
Gets a value of int configuration property.
- returns
A Some wrapped value of int configuration property if exists, otherwise None.
-
def
getOptionalLong: (String) ⇒ Option[Long]
Gets a value of long configuration property.
Gets a value of long configuration property.
- returns
A Some wrapped value of long configuration property if exists, otherwise None.
-
def
getOptionalShort: (String) ⇒ Option[Short]
Gets a value of short configuration property.
Gets a value of short configuration property.
- returns
A Some wrapped value of short configuration property if exists, otherwise None.
-
def
getOptionalString: (String) ⇒ Option[String]
Gets a value of string configuration property.
Gets a value of string configuration property.
- returns
A Some wrapped value of string configuration property if exists, otherwise None.
-
def
getOptionalStringArray: (String) ⇒ Option[Array[String]]
Gets a value of string array configuration property and checks whether the array is not empty.
Gets a value of string array configuration property and checks whether the array is not empty.
- returns
A Some wrapped value of string array configuration property if not empty, otherwise None.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any