FallbackWith

final case class FallbackWith[A](first: Config[A], second: Config[A], f: Error => Boolean) extends Fallback[A]
class Fallback[A]
trait Product
trait Equals
trait Composite[A]
trait Config[A]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def condition(error: Error): Boolean
Definition Classes

Inherited methods

def ++[B](that: => Config[B])(implicit zippable: Zippable[A, B]): Config[Out]

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.

Inherited from:
Config
def ??(label: => String): Config[A]

Adds a description to this configuration, which is intended for humans.

Adds a description to this configuration, which is intended for humans.

Inherited from:
Config
def canEqual(that: Any): Boolean
Inherited from:
Fallback
override def equals(that: Any): Boolean

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 type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

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.

Returns:

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Fallback -> Equals -> Any
Inherited from:
Fallback
override def hashCode: Int

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.

Returns:

the hash code value for this object.

Definition Classes
Fallback -> Any
Inherited from:
Fallback
def map[B](f: A => B): Config[B]

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.

Inherited from:
Config
def mapAttempt[B](f: A => B): Config[B]

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.

Inherited from:
Config
def mapOrFail[B](f: A => Either[Error, B]): Config[B]

Returns a new config whose structure is the samea 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 samea as this one, but which may produce a different Scala value, constructed using the specified fallible function.

Inherited from:
Config
def nested(name: => String): Config[A]

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.

Inherited from:
Config
def optional: Config[Option[A]]

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.

Inherited from:
Config
def orElse[A1 >: A](that: => Config[A1]): Config[A1]

A named version of ||.

A named version of ||.

Inherited from:
Config
def orElseIf(condition: Error => Boolean): OrElse[A]

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.

Inherited from:
Config
def productArity: Int
Inherited from:
Fallback
def productElement(n: Int): Any
Inherited from:
Fallback
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
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.

Inherited from:
Config
def validate(message: => String)(f: A => Boolean): Config[A]

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.

Inherited from:
Config
def validateWith[B](message: => String)(pf: PartialFunction[A, B]): Config[B]

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.

Inherited from:
Config
def withDefault[A1 >: A](default: => A1): Config[A1]

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.

Inherited from:
Config
def zip[B](that: => Config[B])(implicit z: Zippable[A, B]): Config[Out]

A named version of ++.

A named version of ++.

Inherited from:
Config
def ||[A1 >: A](that: => Config[A1]): Config[A1]

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.

Inherited from:
Config