CurrencyContext adding detailed information
about a CurrencyUnit instance. Typically the
contexts are created and assigned by the classes that implement the javax.money.spi.CurrencyProviderSpi.
The according implementation classes should document, which attributes are available.
Note this class is NOT thread-safe.
javax.money.CurrencyUnit#getContext()
| Access | Constructor and Description |
|---|---|
| private | CurrencyContextBuilder(String
the provider name, creating the corresponding provider)CurrencyUnit containing
the final CurrencyContext created by this builder, not null.Creates a new builder. |
| private | CurrencyContextBuilder(CurrencyContext
the context)javax.money.CurrencyContext to be used for initializing this builder.Creates a new builder. |
| Modifier and Type | Method and Description |
|---|---|
| public CurrencyContext | Returns: a newjavax.money.CurrencyContext instance.Implements abstract javax. javax.money.CurrencyContext.
|
| public static CurrencyContextBuilder | Returns: a newjavax.money.CurrencyContextBuilder instance, never null.the provider name, creating the corresponding provider)CurrencyUnit containing
the final CurrencyContext created by this builder, not null.Creates a new builder. |
| public static CurrencyContextBuilder | Returns: a newjavax.money.CurrencyContextBuilder instance, never null.the context)javax.money.CurrencyContext to be used for initializing this builder.Creates a new builder. |
| CurrencyContextBuilder | back to summary |
|---|---|
| private CurrencyContextBuilder(String provider) Creates a new builder.
| |
| CurrencyContextBuilder | back to summary |
|---|---|
| private CurrencyContextBuilder(CurrencyContext context) Creates a new builder.
| |
| build | back to summary |
|---|---|
| public CurrencyContext build() Implements abstract javax. Creates a new instance of
| |
| of | back to summary |
|---|---|
| public static CurrencyContextBuilder of(String provider) Creates a new builder.
| |
| of | back to summary |
|---|---|
| public static CurrencyContextBuilder of(CurrencyContext context) Creates a new builder.
| |