StringRegexRefinement

abstract class StringRegexRefinement[B <: Value[String]] extends Refined[String, B]
class Refined[String, B]
class Object
trait Matchable
class Any
object Name.type
object Name.type
object Name.type
object Name.type
object Prefix.type
object Name.type

Value members

Abstract methods

protected def regex: Pattern

Concrete methods

override protected def nonMatchMessage(a: String): String
Definition Classes
Source:
Refined.scala
override protected def test(a: String): Boolean
Definition Classes
Source:
Refined.scala

Inherited methods

def from(a: String): 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

Inherited from:
Refined
Source:
Refined.scala
def unsafeFrom(a: String): 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

Inherited from:
Refined
Source:
Refined.scala

Implicits

Inherited implicits

implicit val catsInstances: Hash[B] & Order[B] & Show[B]
Inherited from:
Refined
Source:
Refined.scala