Object/Class

org.sisioh.baseunits.scala.money

Money

Related Docs: class Money | package money

Permalink

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
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val DefaultRoundingMode: scala.math.BigDecimal.RoundingMode.Value

    Permalink
  5. val EUR: Currency

    Permalink
  6. val JPY: Currency

    Permalink
  7. val USD: Currency

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

    Permalink

    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

    金額

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

    Permalink

    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

    金額

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

    Permalink

    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

    金額

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

    Permalink

    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

    金額

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

    Permalink
  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def clone(): AnyRef

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

    Permalink

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

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

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

    amount

    returns

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

  16. def dollars(amount: BigDecimal): Money

    Permalink

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

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

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

    amount

    returns

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

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

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

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

    Permalink

    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で表す量のユーロを表すインスタンス

  20. def euros(amount: BigDecimal): Money

    Permalink

    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で表す量のユーロを表すインスタンス

  21. def finalize(): Unit

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

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

    Permalink

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

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

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

    monies

    金額の集合

    returns

    合計金額

    Exceptions thrown

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

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

    Permalink
  32. final def wait(): Unit

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

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

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

    Permalink

    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で表す量の円を表すインスタンス

  36. def yens(amount: BigDecimal): Money

    Permalink

    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で表す量の円を表すインスタンス

  37. def zero(currency: Currency): Money

    Permalink

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

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

    currency

    通貨単位

    returns

    金額

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped