AmountDecimalString

org.encalmo.models.AmountDecimalString$package.AmountDecimalString
object AmountDecimalString extends OpaqueStringWithPattern[AmountDecimalString, "-?[0-9]+\\.[0-9][0-9]"]

Attributes

Graph
Supertypes
trait OpaqueStringWithPattern[AmountDecimalString, "-?[0-9]+\\.[0-9][0-9]"]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited classlikes

object given_Conversion_O_T extends Conversion[O, T]

Attributes

Inherited from:
AutoShow
Supertypes
class Conversion[O, T]
trait O => T
class Object
trait Matchable
class Any

Value members

Concrete methods

inline override def preformat(value: String): String

Attributes

Definition Classes

Inherited methods

inline def apply(value: String): AmountDecimalString

Attributes

Inherited from:
OpaqueStringWithPattern
inline def show(value: AmountDecimalString): String

Attributes

Inherited from:
OpaqueStringWithPattern
inline def unapply(value: AmountDecimalString): Option[String]

Attributes

Inherited from:
OpaqueType
inline def validate(value: String): Option[AmountDecimalString]

Attributes

Inherited from:
OpaqueStringWithPattern

Givens

Inherited givens

Attributes

Inherited from:
AutoShow

Attributes

Inherited from:
OpaqueString

Attributes

Inherited from:
OpaqueString

Extensions

Extensions

extension (amount: AmountDecimalString)
infix inline def minus(other: AmountDecimalString): AmountDecimalString
infix inline def minus(other: BigDecimal): AmountDecimalString
infix inline def minus(other: Int): AmountDecimalString

Current amount or ZERO if negative

Current amount or ZERO if negative

Attributes

infix inline def plus(other: AmountDecimalString): AmountDecimalString
infix inline def plus(other: BigDecimal): AmountDecimalString
infix inline def plus(other: Int): AmountDecimalString
inline def toAmount: Amount
inline def toBigDecimal: BigDecimal

Inherited extensions

extension (value: AmountDecimalString)
inline def existsIn(values: AmountDecimalString*): Boolean

Attributes

Inherited from:
OpaqueType