@Deprecated public final class HistoricConversionQueryBuilder extends Object
HistoricConversionQueryBuilder#of(CurrencyUnit)}| Modifier and Type | Class and Description |
|---|---|
class |
HistoricConversionQueryBuilder.HistoricConversionQueryWithDayBuilder
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
javax.money.convert.ConversionQuery |
build()
Deprecated.
Create the
ConversionQuery just with CurrencyUnit, to term currency, already defined. |
static HistoricConversionQueryBuilder |
of(javax.money.CurrencyUnit currencyUnit)
Deprecated.
Create a
HistoricConversionQueryBuilder from currency |
String |
toString()
Deprecated.
|
HistoricConversionQueryBuilder.HistoricConversionQueryWithDayBuilder |
withDay(java.time.LocalDate localDate)
Deprecated.
Set a specify day on
HistoricConversionQueryBuilder |
HistoricConversionQueryBuilder.HistoricConversionQueryWithDayBuilder |
withDays(java.time.LocalDate... localDates)
Deprecated.
Set days on
HistoricConversionQueryBuilder to be used on ExchangeRateProvider,
these parameters will sort to most recent to be more priority than other. |
HistoricConversionQueryBuilder.HistoricConversionQueryWithDayBuilder |
withDaysBetween(java.time.LocalDate begin,
java.time.LocalDate end)
Deprecated.
Set the period of days on
HistoricConversionQueryBuilder
to be used on ExchangeRateProvider, |
HistoricConversionQueryBuilder.HistoricConversionQueryWithDayBuilder |
withDaysPriorityDefined(java.time.LocalDate... localDates)
Deprecated.
Set days on
HistoricConversionQueryBuilder to be used on ExchangeRateProvider,
these parameters, different of withDays(LocalDate...), consider the order already defined. |
public static HistoricConversionQueryBuilder of(javax.money.CurrencyUnit currencyUnit)
HistoricConversionQueryBuilder from currencycurrencyUnit - to be used in term currency.NullPointerException - when currency is nullpublic HistoricConversionQueryBuilder.HistoricConversionQueryWithDayBuilder withDay(java.time.LocalDate localDate)
HistoricConversionQueryBuilderlocalDate - NullPointerException - when LocalDate is null@SafeVarargs public final HistoricConversionQueryBuilder.HistoricConversionQueryWithDayBuilder withDays(java.time.LocalDate... localDates)
HistoricConversionQueryBuilder to be used on ExchangeRateProvider,
these parameters will sort to most recent to be more priority than other.localDates - IllegalArgumentException - when is empty or the parameter has an null value@SafeVarargs public final HistoricConversionQueryBuilder.HistoricConversionQueryWithDayBuilder withDaysPriorityDefined(java.time.LocalDate... localDates)
HistoricConversionQueryBuilder to be used on ExchangeRateProvider,
these parameters, different of withDays(LocalDate...), consider the order already defined.localDates - IllegalArgumentException - when is empty or the parameter has an null valuepublic final HistoricConversionQueryBuilder.HistoricConversionQueryWithDayBuilder withDaysBetween(java.time.LocalDate begin, java.time.LocalDate end)
HistoricConversionQueryBuilder
to be used on ExchangeRateProvider,begin - end - Example:
LocalDate today = LocalDate.parse("2015-04-03");
LocalDate yesterday = today.minusDays(1);
LocalDate tomorrow = today.plusDays(1);
ConversionQuery query = HistoricConversionQueryBuilder.of(real).onDaysBetween(yesterday, tomorrow).build();//the query with new LocalDate[] {tomorrow, today, yesterday}
NullPointerException - when either begin or end is nullIllegalArgumentException - when the begin is bigger than endpublic javax.money.convert.ConversionQuery build()
ConversionQuery just with CurrencyUnit, to term currency, already defined.Copyright © 2012-2016 JavaMoney. All Rights Reserved.