Amount

org.encalmo.models.Amount$package.Amount

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Show all
Self type
Amount.type

Members list

Value members

Concrete methods

inline def apply(amount: Int): Amount
inline def show(value: Amount): Int

Inherited methods

inline def max(value1: Amount, values: Amount*): Amount

Attributes

Inherited from:
SimpleOpaqueInteger
inline def max(value1: Amount, value2: Amount): Amount

Attributes

Inherited from:
SimpleOpaqueInteger
inline def min(value1: Amount, values: Amount*): Amount

Attributes

Inherited from:
SimpleOpaqueInteger
inline def min(value1: Amount, value2: Amount): Amount

Attributes

Inherited from:
SimpleOpaqueInteger
inline def of(value: BigDecimal): Amount

Attributes

Inherited from:
OpaqueInteger
inline def of(value: Double): Amount

Attributes

Inherited from:
OpaqueInteger
inline def roundedDown(value: BigDecimal): Amount

Attributes

Inherited from:
SimpleOpaqueInteger
inline def roundedHalfDown(value: BigDecimal): Amount

Attributes

Inherited from:
SimpleOpaqueInteger
inline def roundedHalfUp(value: BigDecimal): Amount

Attributes

Inherited from:
SimpleOpaqueInteger
inline def roundedUp(value: BigDecimal): Amount

Attributes

Inherited from:
SimpleOpaqueInteger
inline def unapply(value: Amount): Option[Int]

Attributes

Inherited from:
OpaqueType

Inherited fields

val ZERO: Amount

Attributes

Inherited from:
SimpleOpaqueInteger

Givens

Inherited givens

given given_Function_O_Value: Amount => Value

Attributes

Inherited from:
OpaqueInteger

Attributes

Inherited from:
OpaqueInteger
given given_ReadWriter_O: ReadWriter[Amount]

Attributes

Inherited from:
OpaqueInteger

Extensions

Extensions

extension (amount: Amount)
inline def applyPercentage(percentage: Percentage): Amount
infix inline def minusBps(bps: Bps): Amount
infix inline def minusPercentage(percentage: Percentage): Amount
infix inline def plusBps(bps: Bps): Amount
infix inline def plusPercentage(percentage: Percentage): Amount

Inherited extensions

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

Attributes

Inherited from:
OpaqueType
extension (value: Amount)
inline def *(n: Double): Amount

Attributes

Inherited from:
OpaqueInteger
inline def *(n: BigDecimal): Amount

Attributes

Inherited from:
OpaqueInteger
inline def *(n: Int): Amount

Attributes

Inherited from:
OpaqueInteger
inline def +(n: Int): Amount

Attributes

Inherited from:
OpaqueInteger
inline def -(n: Int): Amount

Attributes

Inherited from:
OpaqueInteger
inline def /(n: Double): Amount

Attributes

Inherited from:
OpaqueInteger
inline def /(n: BigDecimal): Amount

Attributes

Inherited from:
OpaqueInteger
inline def /(n: Int): Amount

Attributes

Inherited from:
OpaqueInteger
inline def toBigDecimal: BigDecimal

Attributes

Inherited from:
OpaqueInteger
inline def toInt: Int

Attributes

Inherited from:
OpaqueInteger
extension (value: Amount)
infix inline def minus(other: Amount): Amount

Attributes

Inherited from:
SimpleOpaqueInteger
inline def orZero: Amount

Current value or ZERO if negative

Current value or ZERO if negative

Attributes

Inherited from:
SimpleOpaqueInteger
infix inline def plus(other: Amount): Amount

Attributes

Inherited from:
SimpleOpaqueInteger