class ForexOptionDigitalDefinition implements InstrumentDefinition<InstrumentDerivative> {

  @Override
  public ForexOptionDigital toDerivative(final ZonedDateTime date) {
    ArgumentChecker.notNull(date, "date");
    final Forex fx = _underlyingForex.toDerivative(date);
    final double expirationTime = TimeCalculator.getTimeBetween(date, _expirationDate);
    return new ForexOptionDigital(fx, expirationTime, _isCall, _isLong, _payDomestic);
  }

  public  ForexOptionDigitalDefinition(final ForexDefinition forex, final ZonedDateTime expirationDate, final boolean isCall, final boolean isLong);
  public  ForexOptionDigitalDefinition(final ForexDefinition forex, final ZonedDateTime expirationDate, final boolean isCall, final boolean isLong, final boolean payDomestic);

}