org.sisioh.baseunits.scala.money

Money

object Money extends Serializable

Moneyコンパニオンオブジェクト。

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Money
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val DefaultRoundingMode: scala.math.BigDecimal.RoundingMode.Value

  7. val EUR: Currency

  8. val JPY: Currency

  9. val USD: Currency

  10. def adjustBy(dblAmount: Double, currency: Currency): Money

    WARNING: Because of the indefinite precision of double, this method must round off the value.

    WARNING: Because of the indefinite precision of double, this method must round off the value.

    dblAmount

    currency

    通貨単位

    returns

    金額

  11. def adjustBy(rawAmount: BigDecimal, currency: Currency, roundingMode: scala.math.BigDecimal.RoundingMode.Value): Money

    For convenience, an amount can be rounded to create a Money.

    For convenience, an amount can be rounded to create a Money.

    rawAmount

    currency

    通貨単位

    roundingMode

    丸めモード

    returns

    金額

  12. def adjustBy(amount: BigDecimal, currency: Currency): Money

    This creation method is safe to use.

    This creation method is safe to use. It will adjust scale, but will not round off the amount.

    amount

    currency

    通貨単位

    returns

    金額

  13. def adjustRound(dblAmount: Double, currency: Currency, roundingMode: scala.math.BigDecimal.RoundingMode.Value): Money

    Because of the indefinite precision of double, this method must round off the value.

    Because of the indefinite precision of double, this method must round off the value. This method gives the client control of the rounding mode.

    dblAmount

    currency

    通貨単位

    roundingMode

    丸めモード

    returns

    金額

  14. def apply(amount: BigDecimal, currency: Currency): Money

  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def dollars(amount: Double): Money

    amountで表す量のドルを表すインスタンスを返す。

    amountで表す量のドルを表すインスタンスを返す。

    WARNING: Because of the indefinite precision of double, this method must round off the value.

    amount

    returns

    amountで表す量のドルを表すインスタンス

  18. def dollars(amount: BigDecimal): Money

    amountで表す量のドルを表すインスタンスを返す。

    amountで表す量のドルを表すインスタンスを返す。

    This creation method is safe to use. It will adjust scale, but will not round off the amount.

    amount

    returns

    amountで表す量のドルを表すインスタンス

  19. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  21. def euros(amount: Double): Money

    WARNING: Because of the indefinite precision of double, this method must round off the value.

    WARNING: Because of the indefinite precision of double, this method must round off the value.

    amount

    returns

    amountで表す量のユーロを表すインスタンス

  22. def euros(amount: BigDecimal): Money

    This creation method is safe to use.

    This creation method is safe to use. It will adjust scale, but will not round off the amount.

    amount

    returns

    amountで表す量のユーロを表すインスタンス

  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def sum(monies: Iterable[Money]): Money

    scala.Iterableに含む全ての金額の合計金額を返す。

    scala.Iterableに含む全ての金額の合計金額を返す。

    合計金額の通貨単位は、 moniesの要素の(共通した)通貨単位となるが、 Collectionが空の場合は、現在のデフォルトロケールにおける通貨単位で、量が0のインスタンスを返す。

    monies

    金額の集合

    returns

    合計金額

    Exceptions thrown
    ClassCastException

    引数の通貨単位の中に通貨単位が異なるものを含む場合。 ただし、量が0の金額については通貨単位を考慮しないので例外は発生しない。

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def unapply(money: Money): Option[(BigDecimal, Currency)]

  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def yens(amount: Double): Money

    WARNING: Because of the indefinite precision of double, this method must round off the value.

    WARNING: Because of the indefinite precision of double, this method must round off the value.

    amount

    returns

    amountで表す量の円を表すインスタンス

  38. def yens(amount: BigDecimal): Money

    This creation method is safe to use.

    This creation method is safe to use. It will adjust scale, but will not round off the amount.

    amount

    returns

    amountで表す量の円を表すインスタンス

  39. def zero(currency: Currency): Money

    指定した通貨単位を持つ、量が0の金額を返す。

    指定した通貨単位を持つ、量が0の金額を返す。

    currency

    通貨単位

    returns

    金額

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped