Money.Builder

public abstract class Money.Builder


Builder for Money.

Summary

Public constructors

Public methods

Money

Builds the Money.

abstract Integer
abstract Long
abstract Money.Builder
setCurrencyCode(String currencyCode)
abstract Money.Builder
abstract Money.Builder
setUnits(Long units)

Public constructors

Builder

public Builder()

Public methods

build

public Money build()

Builds the Money.

If "units" is positive, "nanos" must be positive or zero. If "units" is zero, "nanos" can be positive, zero, or negative. If "units" is negative, "nanos" must be negative or zero.

Throws
java.lang.IllegalArgumentException

If unit and nano are in conflict.

getNanos

public abstract Integer getNanos()

getUnits

public abstract Long getUnits()

setCurrencyCode

public abstract Money.Builder setCurrencyCode(String currencyCode)

setNanos

public abstract Money.Builder setNanos(Integer nanos)

setUnits

public abstract Money.Builder setUnits(Long units)