public final class CurrencyContextBuilder extends AbstractContextBuilder<CurrencyContextBuilder,CurrencyContext>
CurrencyContext adding detailed information
about a CurrencyUnit instance. Typically the
contexts are created and assigned by the classes that implement the CurrencyProviderSpi.
The according implementation classes should document, which attributes are available.
Note this class is NOT thread-safe.
CurrencyUnit.getContext()| Modifier and Type | Method and Description |
|---|---|
CurrencyContext |
build()
Creates a new instance of
CurrencyContext. |
static CurrencyContextBuilder |
of(CurrencyContext context)
Creates a new builder.
|
static CurrencyContextBuilder |
of(String provider)
Creates a new builder.
|
importContext, importContext, removeAttributes, set, set, set, set, set, set, set, set, set, setProviderName, toStringpublic CurrencyContext build()
CurrencyContext.build in class AbstractContextBuilder<CurrencyContextBuilder,CurrencyContext>CurrencyContext instance.public static CurrencyContextBuilder of(String provider)
provider - the provider name, creating the corresponding CurrencyUnit containing
the final CurrencyContext created by this builder, not null.CurrencyContextBuilder instance, never null.public static CurrencyContextBuilder of(CurrencyContext context)
context - the CurrencyContext to be used for initializing this builder.CurrencyContextBuilder instance, never null.Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.