AmountString

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

Attributes

Graph
Supertypes
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 def max(amount1: AmountString, amount2: AmountString): AmountString
inline def max(amount1: AmountString, amounts: AmountString*): AmountString
inline def min(amount1: AmountString, amount2: AmountString): AmountString
inline def min(amount1: AmountString, amounts: AmountString*): AmountString
inline def roundedDown(value: BigDecimal): AmountString
inline def roundedHalfUp(value: BigDecimal): AmountString
inline def roundedUp(value: BigDecimal): AmountString

Inherited methods

inline def apply(value: String): AmountString

Attributes

Inherited from:
OpaqueStringWithPattern
def preformat(value: String): String

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
OpaqueStringWithPattern

Concrete fields

Givens

Inherited givens

Attributes

Inherited from:
AutoShow

Attributes

Inherited from:
OpaqueString
given given_ReadWriter_O: ReadWriter[AmountString]

Attributes

Inherited from:
OpaqueString

Extensions

Extensions

extension (amount: AmountString)
infix inline def minus(other: AmountString): AmountString
infix inline def minus(other: Int): AmountString
inline def orZero: AmountString

Current amount or ZERO if negative

Current amount or ZERO if negative

Attributes

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

Inherited extensions

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

Attributes

Inherited from:
OpaqueType