Module java.money
Package javax.money

Class MonetaryContextBuilder


public final class MonetaryContextBuilder extends AbstractContextBuilder<MonetaryContextBuilder,MonetaryContext>
Builder class for creating new instances of MonetaryContext adding detailed information about a MonetaryAmount instance.

Note this class is NOT thread-safe.

See Also:
  • Constructor Details

    • MonetaryContextBuilder

      private MonetaryContextBuilder(MonetaryContext monetaryContext)
    • MonetaryContextBuilder

      private MonetaryContextBuilder(Class<? extends MonetaryAmount> amountType)
      Creates a new builder, hereby the target implementation type is required. This can be used to explicitly acquire a specific amount type and additionally configure the amount factory with the attributes in this query.
      Parameters:
      amountType - the target amount type, not null.
  • Method Details