java.lang.Object
javax.money.AbstractContextBuilder<CurrencyContextBuilder,CurrencyContext>
javax.money.CurrencyContextBuilder
public final class CurrencyContextBuilder extends AbstractContextBuilder<CurrencyContextBuilder,CurrencyContext>
Builder class for creating new instances of 
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.
- See Also:
- CurrencyUnit.getContext()
- 
Method SummaryModifier and Type Method Description CurrencyContextbuild()Creates a new instance ofCurrencyContext.static CurrencyContextBuilderof(java.lang.String provider)Creates a new builder.static CurrencyContextBuilderof(CurrencyContext context)Creates a new builder.Methods inherited from class javax.money.AbstractContextBuilderimportContext, importContext, removeAttributes, set, set, set, set, set, set, set, set, set, setProviderName, toString
- 
Method Details- 
buildCreates a new instance ofCurrencyContext.- Specified by:
- buildin class- AbstractContextBuilder<CurrencyContextBuilder,CurrencyContext>
- Returns:
- a new CurrencyContextinstance.
 
- 
ofCreates a new builder.- Parameters:
- provider- the provider name, creating the corresponding- CurrencyUnitcontaining the final- CurrencyContextcreated by this builder, not null.
- Returns:
- a new CurrencyContextBuilderinstance, never null.
 
- 
ofCreates a new builder.- Parameters:
- context- the- CurrencyContextto be used for initializing this builder.
- Returns:
- a new CurrencyContextBuilderinstance, never null.
 
 
-