@API(status=STABLE)
public final class MoneyModule
extends com.fasterxml.jackson.databind.Module
Constructor and Description |
---|
MoneyModule() |
Modifier and Type | Method and Description |
---|---|
String |
getModuleName() |
void |
setupModule(com.fasterxml.jackson.databind.Module.SetupContext context) |
com.fasterxml.jackson.core.Version |
version() |
MoneyModule |
withAmountFieldName(String name) |
MoneyModule |
withCurrencyFieldName(String name) |
MoneyModule |
withDecimalNumbers() |
MoneyModule |
withDefaultFormatting() |
MoneyModule |
withFastMoney() |
MoneyModule |
withFormattedFieldName(String name) |
MoneyModule |
withFormatting(MonetaryAmountFormatFactory formatFactory) |
MoneyModule |
withMonetaryAmount(MonetaryAmountFactory<? extends javax.money.MonetaryAmount> amountFactory) |
MoneyModule |
withMoney() |
MoneyModule |
withNumbers(AmountWriter writer) |
MoneyModule |
withoutFormatting() |
MoneyModule |
withQuotedDecimalNumbers() |
MoneyModule |
withRoundedMoney() |
MoneyModule |
withRoundedMoney(javax.money.MonetaryOperator rounding) |
public String getModuleName()
getModuleName
in class com.fasterxml.jackson.databind.Module
public com.fasterxml.jackson.core.Version version()
version
in interface com.fasterxml.jackson.core.Versioned
version
in class com.fasterxml.jackson.databind.Module
public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
setupModule
in class com.fasterxml.jackson.databind.Module
public MoneyModule withDecimalNumbers()
public MoneyModule withQuotedDecimalNumbers()
@API(status=EXPERIMENTAL) public MoneyModule withNumbers(AmountWriter writer)
public MoneyModule withFastMoney()
MoneyModule
using FastMoney
FastMoney
public MoneyModule withMoney()
MoneyModule
using Money
Money
public MoneyModule withRoundedMoney()
MoneyModule
using RoundedMoney
RoundedMoney
public MoneyModule withRoundedMoney(javax.money.MonetaryOperator rounding)
MoneyModule
using RoundedMoney
with the given MonetaryRounding
RoundedMoney
public MoneyModule withMonetaryAmount(MonetaryAmountFactory<? extends javax.money.MonetaryAmount> amountFactory)
public MoneyModule withoutFormatting()
public MoneyModule withDefaultFormatting()
public MoneyModule withFormatting(MonetaryAmountFormatFactory formatFactory)
public MoneyModule withAmountFieldName(String name)
public MoneyModule withCurrencyFieldName(String name)
public MoneyModule withFormattedFieldName(String name)
Copyright © 2015–2019 Zalando SE. All rights reserved.