Index

A B C D E G H I M O P R S T V W Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

acceptJsonFormatVisitor(JsonFormatVisitorWrapper, JavaType) - Method in class com.broadleafcommerce.money.jackson.CurrencyAwareBigDecimalSerializer
 
acceptJsonFormatVisitor(JsonFormatVisitorWrapper, JavaType) - Method in class com.broadleafcommerce.money.jackson.CurrencyContextSerializer
 
AMOUNT_FIELD - Static variable in class com.broadleafcommerce.money.jackson.OptionalMonetaryAmountDeserializer
 

B

BroadleafMoneyAutoConfiguration - Class in com.broadleafcommerce.money.autoconfigure
Main configuration class that adds in the JSR-354 support to Jackson
BroadleafMoneyAutoConfiguration() - Constructor for class com.broadleafcommerce.money.autoconfigure.BroadleafMoneyAutoConfiguration
 
BroadleafMoneyConfigurationProperties - Class in com.broadleafcommerce.money.autoconfigure
Holder for the default Broadleaf system currency.
BroadleafMoneyConfigurationProperties() - Constructor for class com.broadleafcommerce.money.autoconfigure.BroadleafMoneyConfigurationProperties
 
BroadleafMoneyModule<M extends javax.money.MonetaryAmount> - Class in com.broadleafcommerce.money.jackson
Overrides the default Monetary deserializers (e.g.
BroadleafMoneyModule() - Constructor for class com.broadleafcommerce.money.jackson.BroadleafMoneyModule
 
BroadleafMoneyModule(MoneyModule) - Constructor for class com.broadleafcommerce.money.jackson.BroadleafMoneyModule
 
BroadleafMoneyModule.FieldNames - Class in com.broadleafcommerce.money.jackson
 
build() - Method in class com.broadleafcommerce.money.DefaultSystemCurrencyQueryBuilder
 

C

canEqual(Object) - Method in class com.broadleafcommerce.money.jackson.CurrencyHolder
 
clear() - Static method in class com.broadleafcommerce.money.ThreadCurrencyContext
 
clearCurrency() - Static method in class com.broadleafcommerce.money.SystemCurrencyContextHolder
clearProcessCurrency() - Static method in class com.broadleafcommerce.money.SystemCurrencyContextHolder
 
com.broadleafcommerce.money - package com.broadleafcommerce.money
 
com.broadleafcommerce.money.autoconfigure - package com.broadleafcommerce.money.autoconfigure
 
com.broadleafcommerce.money.jackson - package com.broadleafcommerce.money.jackson
 
com.broadleafcommerce.money.util - package com.broadleafcommerce.money.util
 
convert(MonetaryAmount) - Method in class com.broadleafcommerce.money.jackson.MonetaryToBigDecimalConverter
 
CurrencyAware - Interface in com.broadleafcommerce.money
Aggregate interface to indicate that an implementation accepts and provides CurrencyUnit.
CurrencyAwareBigDecimalSerializer - Class in com.broadleafcommerce.money.jackson
Serializes a BigDecimal property to look like MonetaryAmount with a currency.
CurrencyAwareBigDecimalSerializer() - Constructor for class com.broadleafcommerce.money.jackson.CurrencyAwareBigDecimalSerializer
 
CurrencyConsumer - Interface in com.broadleafcommerce.money
Convenience interface to indicate than an object, usually an entity, accepts a CurrencyUnit.
CurrencyContext - Interface in com.broadleafcommerce.money
Deprecated.
CurrencyContextAware - Interface in com.broadleafcommerce.money.jackson
Deprecated.
CurrencyContextDeserializer<T extends CurrencyContext> - Class in com.broadleafcommerce.money.jackson
Allows deserialization of a CurrencyContext.
CurrencyContextDeserializer(CurrencyContextSupplier<T>, BroadleafMoneyModule.FieldNames) - Constructor for class com.broadleafcommerce.money.jackson.CurrencyContextDeserializer
 
CurrencyContextSerializer - Class in com.broadleafcommerce.money.jackson
Allows serialization of a CurrencyContext.
CurrencyContextSerializer() - Constructor for class com.broadleafcommerce.money.jackson.CurrencyContextSerializer
 
CurrencyContextSupplier<T extends CurrencyContext> - Interface in com.broadleafcommerce.money
Represents a supplier of CurrencyContext-valued results.
CurrencyHolder - Class in com.broadleafcommerce.money.jackson
Request scoped bean used to hold the currency to be used during deserialization.
CurrencyHolder() - Constructor for class com.broadleafcommerce.money.jackson.CurrencyHolder
 

D

DEFAULT - Static variable in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule.FieldNames
 
DEFAULT_QUERY_KEY - Static variable in class com.broadleafcommerce.money.DefaultSystemCurrencyQueryBuilder
 
defaultCurrency() - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Obtains the default system currency
DefaultSystemCurrencyProvider - Class in com.broadleafcommerce.money
Bridge class for the Java Money API to access the result of the SystemCurrencyContextHolder
DefaultSystemCurrencyProvider() - Constructor for class com.broadleafcommerce.money.DefaultSystemCurrencyProvider
 
DefaultSystemCurrencyQueryBuilder - Class in com.broadleafcommerce.money
Convenience object for building a query for the default-configured system currency.
DefaultSystemCurrencyQueryBuilder() - Constructor for class com.broadleafcommerce.money.DefaultSystemCurrencyQueryBuilder
 
deserialize(JsonParser, DeserializationContext) - Method in class com.broadleafcommerce.money.jackson.CurrencyContextDeserializer
 
deserialize(JsonParser, DeserializationContext) - Method in class com.broadleafcommerce.money.jackson.OptionalMonetaryAmountDeserializer
 
deserialize(JsonParser, DeserializationContext) - Method in class com.broadleafcommerce.money.jackson.SystemCurrencyMonetaryDeserializer
 
deserializeWithType(JsonParser, DeserializationContext, TypeDeserializer) - Method in class com.broadleafcommerce.money.jackson.CurrencyContextDeserializer
 
deserializeWithType(JsonParser, DeserializationContext, TypeDeserializer) - Method in class com.broadleafcommerce.money.jackson.OptionalMonetaryAmountDeserializer
 
deserializeWithType(JsonParser, DeserializationContext, TypeDeserializer) - Method in class com.broadleafcommerce.money.jackson.SystemCurrencyMonetaryDeserializer
 

E

equals(Object) - Method in class com.broadleafcommerce.money.jackson.CurrencyHolder
 
equals(Object) - Method in class com.broadleafcommerce.money.SimpleCurrencyContext
Deprecated.
 

G

getAmount() - Method in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule.FieldNames
 
getContext() - Static method in class com.broadleafcommerce.money.ThreadCurrencyContext
 
getCurrencies(CurrencyQuery) - Method in class com.broadleafcommerce.money.DefaultSystemCurrencyProvider
 
getCurrency() - Method in interface com.broadleafcommerce.money.CurrencyContext
Deprecated.
Obtains the current currency associated with this execution
getCurrency() - Method in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule.FieldNames
 
getCurrency() - Method in class com.broadleafcommerce.money.jackson.CurrencyHolder
The currency for this request.
getCurrency() - Method in class com.broadleafcommerce.money.SimpleCurrencyContext
Deprecated.
 
getCurrency() - Static method in class com.broadleafcommerce.money.SystemCurrencyContextHolder
Obtains the currently-configured system currency.
getCurrency(String) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Takes a currency code and returns a CurrencyUnit.
getCurrency(Currency) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Converts a Currency object into a CurrencyUnit.
getCurrency(Locale) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Get the CurrencyUnit for the Locale provided
getCurrencyContext() - Method in interface com.broadleafcommerce.money.jackson.CurrencyContextAware
Deprecated.
Obtains the CurrencyContext for serialization, usually set from CurrencyContextAware.setCurrencyContext(CurrencyContext) although not required
getCurrencyContext() - Static method in class com.broadleafcommerce.money.SystemCurrencyContextHolder
Convenience method that returns the context configured by the holder.
getCurrencyContext(CurrencyUnit) - Method in interface com.broadleafcommerce.money.CurrencyContextSupplier
Gets the corresponding CurrencyContext.
getCurrencyHolder() - Method in class com.broadleafcommerce.money.jackson.SystemCurrencyMonetaryDeserializer
 
getCurrencyUnit() - Method in class com.broadleafcommerce.money.ThreadCurrencyContext
 
getDefaultCurrencyCode() - Method in class com.broadleafcommerce.money.autoconfigure.BroadleafMoneyConfigurationProperties
The default CurrencyUnit that all MonetaryAmount instances will be returned in if not otherwise set
getFormatted() - Method in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule.FieldNames
 
getModuleName() - Method in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule
 
getNames() - Method in class com.broadleafcommerce.money.jackson.CurrencyContextDeserializer
 
getProcessCurrency() - Static method in class com.broadleafcommerce.money.SystemCurrencyContextHolder
 
getProviderName() - Method in class com.broadleafcommerce.money.DefaultSystemCurrencyProvider
 
getSupplier() - Method in class com.broadleafcommerce.money.jackson.CurrencyContextDeserializer
 
getType() - Method in class com.broadleafcommerce.money.jackson.SystemCurrencyMonetaryDeserializer
 

H

hashCode() - Method in class com.broadleafcommerce.money.jackson.CurrencyHolder
 
hashCode() - Method in class com.broadleafcommerce.money.SimpleCurrencyContext
Deprecated.
 

I

initializeSystemCurrency() - Method in class com.broadleafcommerce.money.autoconfigure.BroadleafMoneyConfigurationProperties
 
isEqualByComparison(MonetaryAmount, Number) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Tests if a MonetaryAmount is equal to the BigDecimal being passed in by looking at each objects doubleValue
isEqualByComparison(MonetaryAmount, String) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Tests if a MonetaryAmount is equal to the String being passed in by first converting the String to a BigDecimal and then calling the MonetaryUtils.isEqualByComparison(MonetaryAmount, Number) method.
isEqualByComparison(MonetaryAmount, MonetaryAmount) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Tests whether two MonetaryAmount objects are equal by comparison, after rounding is applied based on currency.
isEqualTo(MonetaryAmount, Number) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Tests whether the MonetaryAmount value is equal to the Number provided, rounded according to the currency.
isEqualToZero(MonetaryAmount) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Tests whether the provided MonetaryAmount is equal to zero after rounding based on the currency.
isGreaterThan(MonetaryAmount, Number) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Tests whether the MonetaryAmount value is greater than the Number provided, rounded according to the currency.
isGreaterThanZero(MonetaryAmount) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Tests whether the provided MonetaryAmount is greater than zero after rounding based on the currency.
isLessThan(MonetaryAmount, Number) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Tests whether the MonetaryAmount value is less than the Number provided, rounded according to the currency.
isLessThanZero(MonetaryAmount) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Tests whether the provided MonetaryAmount is less than zero after rounding based on the currency.

M

MonetaryToBigDecimalConverter - Class in com.broadleafcommerce.money.jackson
On an incoming deserialization request, we should not trust the currency coming in at all and instead only look at the value.
MonetaryToBigDecimalConverter() - Constructor for class com.broadleafcommerce.money.jackson.MonetaryToBigDecimalConverter
 
MonetaryUtils - Class in com.broadleafcommerce.money.util
Convenience methods for dealing with the Monetary API

O

of() - Static method in class com.broadleafcommerce.money.DefaultSystemCurrencyQueryBuilder
Static factory to obtain a new instance of this class to access fluently
OptionalMonetaryAmountDeserializer - Class in com.broadleafcommerce.money.jackson
Takes in JSON that looks like it was formatted for a Money object but deserializes just the amount field into a BigDecimal.
OptionalMonetaryAmountDeserializer() - Constructor for class com.broadleafcommerce.money.jackson.OptionalMonetaryAmountDeserializer
 

P

PROVIDER_NAME - Static variable in class com.broadleafcommerce.money.DefaultSystemCurrencyProvider
 

R

resolveCurrency(Object) - Method in class com.broadleafcommerce.money.jackson.CurrencyAwareBigDecimalSerializer
 
round(MonetaryAmount) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Rounds the passed in amount using the scale of its currency and a default rounding mode.
round(MonetaryAmount, int) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Performs rounding to the specified scale and RoundingMode.HALF_EVEN used for the rounding model.
round(MonetaryAmount, int, RoundingMode) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Performs rounding on the amount with a specified scale and roundingMode.
round(MonetaryAmount, RoundingMode) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Rounds the passed in amount using the scale of its currency and the passed in RoundingMode RoundingMode.HALF_EVEN is considered "Banker's Rounding" and this is what is used.

S

serialize(CurrencyContext, JsonGenerator, SerializerProvider) - Method in class com.broadleafcommerce.money.jackson.CurrencyContextSerializer
 
serialize(BigDecimal, JsonGenerator, SerializerProvider) - Method in class com.broadleafcommerce.money.jackson.CurrencyAwareBigDecimalSerializer
 
serializeWithType(CurrencyContext, JsonGenerator, SerializerProvider, TypeSerializer) - Method in class com.broadleafcommerce.money.jackson.CurrencyContextSerializer
 
serializeWithType(BigDecimal, JsonGenerator, SerializerProvider, TypeSerializer) - Method in class com.broadleafcommerce.money.jackson.CurrencyAwareBigDecimalSerializer
 
setCurrency(CurrencyContext) - Static method in class com.broadleafcommerce.money.SystemCurrencyContextHolder
setCurrency(String) - Method in class com.broadleafcommerce.money.jackson.CurrencyHolder
The currency for this request.
setCurrency(CurrencyUnit) - Method in interface com.broadleafcommerce.money.CurrencyConsumer
Method to accept a CurrencyUnit.
setCurrency(CurrencyUnit) - Static method in class com.broadleafcommerce.money.SystemCurrencyContextHolder
Updates this holder with the specified currency.
setCurrencyContext(CurrencyContext) - Method in interface com.broadleafcommerce.money.jackson.CurrencyContextAware
Deprecated.
Sets up the currency context during mapping from the repository domain.
setCurrencyHolder(CurrencyHolder) - Method in class com.broadleafcommerce.money.jackson.SystemCurrencyMonetaryDeserializer
 
setCurrencyMonetaryDeserializers(List<SystemCurrencyMonetaryDeserializer<M>>) - Method in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule
 
setCurrencyUnit(CurrencyUnit) - Method in class com.broadleafcommerce.money.ThreadCurrencyContext
 
setDefaultCurrencyCode(String) - Method in class com.broadleafcommerce.money.autoconfigure.BroadleafMoneyConfigurationProperties
The default CurrencyUnit that all MonetaryAmount instances will be returned in if not otherwise set
setProcessCurrency(CurrencyUnit) - Static method in class com.broadleafcommerce.money.SystemCurrencyContextHolder
Sets the currency on a ThreadLocale object.
setSiteContextId(String) - Method in class com.broadleafcommerce.money.DefaultSystemCurrencyQueryBuilder
 
setupModule(Module.SetupContext) - Method in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule
 
SimpleCurrencyContext - Class in com.broadleafcommerce.money
Deprecated.
SimpleCurrencyContext(CurrencyUnit) - Constructor for class com.broadleafcommerce.money.SimpleCurrencyContext
Deprecated.
 
SITE_ID_KEY - Static variable in class com.broadleafcommerce.money.DefaultSystemCurrencyQueryBuilder
 
SystemCurrencyContextHolder - Class in com.broadleafcommerce.money
A thread safe, system wide holder object used for obtaining a currency.
SystemCurrencyMonetaryDeserializer<M extends javax.money.MonetaryAmount> - Class in com.broadleafcommerce.money.jackson
Allows deserialization of a MonetaryAmount (or derivatives) that utilizes the system currency if no currency field is provided to deserialize from
SystemCurrencyMonetaryDeserializer(BroadleafMoneyModule.FieldNames, Class<M>) - Constructor for class com.broadleafcommerce.money.jackson.SystemCurrencyMonetaryDeserializer
 

T

ThreadCurrencyContext - Class in com.broadleafcommerce.money
 
ThreadCurrencyContext() - Constructor for class com.broadleafcommerce.money.ThreadCurrencyContext
 
toAmount(Number) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Converts the given BigDecimal to a MonetaryAmount with the default system currency
toAmount(Number, CurrencyContext) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Converts the given value to a money in the specified currency.
toAmount(Number, String) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Converts the given BigDecimal to a MonetaryAmount with the currency for the given currency code.
toAmount(Number, CurrencyUnit) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Converts the given value to a money in the specified currency.
toAmount(Number, CurrencyUnit, Class<T>) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Returns an instance of MonetaryAmount.
toAmount(String, String) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Converts the given passed in String to a value and then builds an money using the value and then converts the passed in currencyCode (e.g.
toAmount(String, CurrencyUnit) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Converts the given passed in String to a value and then builds an money using the value and specified currency.
toString() - Method in class com.broadleafcommerce.money.jackson.CurrencyHolder
 
toString() - Method in class com.broadleafcommerce.money.SimpleCurrencyContext
Deprecated.
 
toValue(MonetaryAmount) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Converts a MonetaryAmount to a BigDecimal that represents its underlying value.
toValueOrNull(MonetaryAmount) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Converts a MonetaryAmount to a BigDecimal that represents its underlying value.

V

valueOf(String, String, String) - Static method in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule.FieldNames
 
version() - Method in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule
 

W

withAmount(String) - Method in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule.FieldNames
 
withCurrency(String) - Method in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule.FieldNames
 
withFormatted(String) - Method in class com.broadleafcommerce.money.jackson.BroadleafMoneyModule.FieldNames
 

Z

zero() - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Returns a MonetaryAmount with a default CurrencyUnit and a 0 (zero) value.
zero(String) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Returns a MonetaryAmount with the CurrencyUnit for the provided currency code and a 0 (zero) value.
zero(CurrencyUnit) - Static method in class com.broadleafcommerce.money.util.MonetaryUtils
Returns a MonetaryAmount with the provided CurrencyUnit and a 0 (zero) value.
A B C D E G H I M O P R S T V W Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form