Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
class FallbackWith[A]class Optional[A]
- Self type
-
Fallback[A]
Members list
Value members
Concrete methods
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
- Returns
-
true
if the receiver object is equivalent to the argument;false
otherwise. - Definition Classes
-
Equals -> Any
Calculate a hash code value for the object.
Calculate a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
. However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals
method.
Attributes
- Returns
-
the hash code value for this object.
- Definition Classes
-
Any
Inherited methods
Returns a new config that is the composition of this config and the specified config.
Returns a new config that is the composition of this config and the specified config.
Attributes
- Inherited from:
- Config
Adds a description to this configuration, which is intended for humans.
Adds a description to this configuration, which is intended for humans.
Attributes
- Inherited from:
- Config
Returns a new config whose structure is the same as this one, but which produces a different Scala value, constructed using the specified function.
Returns a new config whose structure is the same as this one, but which produces a different Scala value, constructed using the specified function.
Attributes
- Inherited from:
- Config
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified function, which may throw exceptions that will be translated into validation errors.
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified function, which may throw exceptions that will be translated into validation errors.
Attributes
- Inherited from:
- Config
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified fallible function.
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified fallible function.
Attributes
- Inherited from:
- Config
Returns a new config that has this configuration nested as a property of the specified name.
Returns a new config that has this configuration nested as a property of the specified name.
Attributes
- Inherited from:
- Config
Returns a new config that has this configuration nested as a property of the specified name.
Returns a new config that has this configuration nested as a property of the specified name.
Attributes
- Inherited from:
- Config
Returns an optional version of this config, which will be None
if the data is missing from configuration, and Some
otherwise.
Returns an optional version of this config, which will be None
if the data is missing from configuration, and Some
otherwise.
Attributes
- Inherited from:
- Config
A named version of ||
.
Returns configuration which reads from this configuration, but which falls back to the specified configuration if reading from this configuration fails with an error satisfying the specified predicate.
Returns configuration which reads from this configuration, but which falls back to the specified configuration if reading from this configuration fails with an error satisfying the specified predicate.
Attributes
- Inherited from:
- Config
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Returns a new config that describes a sequence of values, each of which has the structure of this config.
Returns a new config that describes a sequence of values, each of which has the structure of this config.
Attributes
- Inherited from:
- Config
Returns a new configuration which reads from this configuration and uses the resulting value to determine the configuration to read from.
Returns a new configuration which reads from this configuration and uses the resulting value to determine the configuration to read from.
Attributes
- Inherited from:
- Config
Returns a new config that describes the same structure as this one, but which performs validation during loading.
Returns a new config that describes the same structure as this one, but which performs validation during loading.
Attributes
- Inherited from:
- Config
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified partial function, failing with the specified validation error if the partial function is not defined.
Returns a new config whose structure is the same as this one, but which may produce a different Scala value, constructed using the specified partial function, failing with the specified validation error if the partial function is not defined.
Attributes
- Inherited from:
- Config
Returns a new config that describes the same structure as this one, but has the specified default value in case the information cannot be found.
Returns a new config that describes the same structure as this one, but has the specified default value in case the information cannot be found.
Attributes
- Inherited from:
- Config
A named version of ++
.
Returns a new configuration that is the composition of this configuration and the specified configuration, combining their values using the function f
.
Returns a new configuration that is the composition of this configuration and the specified configuration, combining their values using the function f
.
Attributes
- Inherited from:
- Config
Returns a config whose structure is preferentially described by this config, but which falls back to the specified config if there is an issue reading from this config.
Returns a config whose structure is preferentially described by this config, but which falls back to the specified config if there is an issue reading from this config.
Attributes
- Inherited from:
- Config