com.softinio.verdict4s.algebra.Levels
See theLevels companion class
object Levels
Building a Levels rubric: from strings at runtime, or derived from an enum with derives Levels.
Attributes
Members list
In this article
Building a Levels rubric: from strings at runtime, or derived from an enum with derives Levels.
The ordered level descriptions as they go on the wire.
The ordered level descriptions as they go on the wire.
The refinement carries the API's own limit of 2 to 10 levels; a Score with one level cannot discriminate and is rejected at construction.
Derive an ordered level set from a Scala 3 enum.
Derive an ordered level set from a Scala 3 enum.
enum Frustration derives Levels:
case Calm, Frustrated, VeryAngry
Declaration order is rubric order, lowest first, and it is what the service's level indices refer to. Reordering the cases changes the meaning of every score already recorded, so treat that order as part of your data model rather than as cosmetic.
Just the wire-level descriptions, for a Score whose answer is read as a number rather than mapped back to a level value.
Just the wire-level descriptions, for a Score whose answer is read as a number rather than mapped back to a level value.
Levels described by plain text, in order from lowest to highest.
Levels described by plain text, in order from lowest to highest.