Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
import walkingkooka.Binary;
import walkingkooka.Either;
import walkingkooka.convert.Converter;
import walkingkooka.currency.CurrencyExchangeRater;
import walkingkooka.currency.CurrencyExchangeRaterDelegator;
import walkingkooka.currency.CurrencyExchange;
import walkingkooka.datetime.DateTimeContext;
import walkingkooka.datetime.DateTimeContextDelegator;
import walkingkooka.environment.EnvironmentContext;
Expand Down Expand Up @@ -95,7 +94,6 @@
* that uses the provided decimal separator and group separator.
*/
final class SpreadsheetExpressionFunctionNumberValueSpreadsheetExpressionEvaluationContext implements SpreadsheetExpressionEvaluationContext,
CurrencyExchangeRaterDelegator,
DateTimeContextDelegator,
SpreadsheetEnvironmentContextDelegator,
JsonNodeMarshallUnmarshallContextDelegator,
Expand Down Expand Up @@ -511,6 +509,24 @@ public SpreadsheetEnvironmentContext spreadsheetEnvironmentContext() {
return this.context;
}

// CanCurrencyExchangeRate..........................................................................................

@Override
public Optional<Number> currencyExchangeRate(final CurrencyExchange currencyExchange,
final Optional<LocalDateTime> dateTime) {
return this.context.currencyExchangeRate(
currencyExchange,
dateTime
);
}

// CanCurrencyExchanges.............................................................................................

@Override
public Set<CurrencyExchange> currencyExchanges() {
return this.context.currencyExchanges();
}

// FormHandlerContext...............................................................................................

@Override
Expand Down Expand Up @@ -538,13 +554,6 @@ public SpreadsheetValidatorContext validatorContext(final SpreadsheetValidationR
return this.context.validatorContext(reference);
}

// CurrencyExchangeRaterDelegator...................................................................................

@Override
public CurrencyExchangeRater currencyExchangeRater() {
return this.context;
}

// DateTimeContextDelegator.........................................................................................

@Override
Expand Down
Loading