Refined

abstract class Refined[A, B <: Value[A]](implicit hashA: Hash[A], orderA: Order[A], showA: Show[A])
Companion:
object
Source:
Refined.scala
class Object
trait Matchable
class Any
object Name.type
object Help.type
object AgeBuckets.type
object AllowedError.type
object Quantile.type
object Name.type
object Name.type
object Name.type
object Name.type
object Prefix.type
object Name.type

Value members

Concrete methods

def from(a: A): Either[String, B]

Parse from the given cakye

Parse from the given cakye

Value parameters:
a

value from which to parse a gauge name

Returns:

a parsed B or failure message, represented by an scala.Either

Source:
Refined.scala
def unsafeFrom(a: A): B

Unsafely parse a B from the given A

Unsafely parse a B from the given A

Value parameters:
a

value from which to parse a counter name

Returns:

a parsed B

Throws:
java.lang.IllegalArgumentException

if a is not valid

Source:
Refined.scala

Implicits

Implicits

implicit val catsInstances: Hash[B] & Order[B] & Show[B]