QuestionKey

com.softinio.verdict4s.algebra.Refinements$package.QuestionKey

A caller-chosen key in the questions map; answers return under the same key.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

override opaque type T

Attributes

Inherited from:
RefinedType

Value members

Concrete methods

override def applyUnsafe(value: String): T

Refine at runtime, throwing IllegalArgumentException if the value is not a non-blank string. Prefer either or option, which return the failure instead.

Refine at runtime, throwing IllegalArgumentException if the value is not a non-blank string. Prefer either or option, which return the failure instead.

Attributes

Definition Classes

Inherited methods

inline def apply[A1 <: String](inline value: A1)(using inline constraint: Constraint[String, NonBlankC]): T

Implicitly refine at compile-time the given value.

Implicitly refine at compile-time the given value.

Value parameters

value

the value to refine.

Attributes

Note

This method ensures that the value satisfies the constraint. If it doesn't or isn't evaluable at compile-time, the compilation is aborted.

Inherited from:
Refined (hidden)
inline def applyAllUnsafe[F[_]](wrapper: F[String])(using mapLogic: MapLogic[F]): F[T]

Refine the given value(s) at runtime.

Refine the given value(s) at runtime.

Attributes

Returns

the given values as T.

Throws
IllegalArgumentException

if the constraint is not satisfied.

See also
Inherited from:
Refined (hidden)
inline def assume(value: String): T

Refine the given value, assuming the constraint holds.

Refine the given value, assuming the constraint holds.

Attributes

Returns

a constrained value, without performing constraint checks.

See also
Inherited from:
Refined (hidden)
inline def assumeAll[F[_]](wrapper: F[String]): F[T]

Refine the given value(s), assuming the constraint holds.

Refine the given value(s), assuming the constraint holds.

Attributes

Returns

a wrapper of constrained values, without performing constraint checks.

See also
Inherited from:
Refined (hidden)

Refine the given value at runtime, resulting in an Either.

Refine the given value at runtime, resulting in an Either.

Attributes

Returns

a Right containing this value as T or a Left containing the constraint message.

See also
Inherited from:
Refined (hidden)
inline def eitherAll[F[_]](wrapper: F[String])(using mapLogic: MapLogic[F]): Either[String, F[T]]

Refine the given value(s) at runtime, resulting in an Either.

Refine the given value(s) at runtime, resulting in an Either.

Attributes

Returns

a Right containing the given values as T or a Left containing the constraint message.

See also
Inherited from:
Refined (hidden)

Refine the given value at runtime, resulting in an Option.

Refine the given value at runtime, resulting in an Option.

Attributes

Returns

an Option containing this value as T or None.

See also
Inherited from:
Refined (hidden)
inline def optionAll[F[_]](wrapper: F[String])(using mapLogic: MapLogic[F]): Option[F[T]]

Refine the given value at runtime, resulting in an Option.

Refine the given value at runtime, resulting in an Option.

Attributes

Returns

an Option containing the refined values as F[T] or None.

See also
Inherited from:
Refined (hidden)

The runtime constraint of the underlying IronType. Can be used in non-inline methods and to improve runtime performances.

The runtime constraint of the underlying IronType. Can be used in non-inline methods and to improve runtime performances.

Attributes

Inherited from:
Refined (hidden)

Attributes

Inherited from:
Refined (hidden)

Extensions

Inherited extensions

extension (wrapper: T)
inline def value: IronType[String, NonBlankC]

Attributes

Inherited from:
Refined (hidden)