//----------------------------------------------------------------------- //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") @Override public ChronoLocalDateTimeImpl<D> with(java.time.temporal.TemporalAdjuster adjuster) public override ChronoLocalDateTimeImpl <D> With(TemporalAdjuster adjuster) { if (adjuster is ChronoLocalDate) { // The Chronology is checked in with(date,time) return(With((ChronoLocalDate)adjuster, Time)); } else if (adjuster is LocalTime) { return(With(Date, (LocalTime)adjuster)); } else if (adjuster is ChronoLocalDateTimeImpl) { //JAVA TO C# CONVERTER TODO TASK: Java wildcard generics are not converted to .NET: //ORIGINAL LINE: return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), (ChronoLocalDateTimeImpl<?>) adjuster); return(ChronoLocalDateTimeImpl.EnsureValid(Date.Chronology, (ChronoLocalDateTimeImpl <?>)adjuster)); } //JAVA TO C# CONVERTER TODO TASK: Java wildcard generics are not converted to .NET: //ORIGINAL LINE: return ChronoLocalDateTimeImpl.ensureValid(date.getChronology(), (ChronoLocalDateTimeImpl<?>) adjuster.adjustInto(this)); return(ChronoLocalDateTimeImpl.EnsureValid(Date.Chronology, (ChronoLocalDateTimeImpl <?>)adjuster.AdjustInto(this))); }
//------------------------------------------------------------------------- public KnownAmountBondPaymentPeriod adjustPaymentDate(TemporalAdjuster adjuster) { Payment adjusted = payment.adjustDate(adjuster); return(adjusted == payment ? this : toBuilder().payment(adjusted).build()); }
//------------------------------------------------------------------------- public NotionalExchange adjustPaymentDate(TemporalAdjuster adjuster) { LocalDate adjusted = payment.Date.with(adjuster); return(of(payment.Value, adjusted)); }
public FixedCouponBondPaymentPeriod adjustPaymentDate(TemporalAdjuster adjuster) { return(this); }
//------------------------------------------------------------------------- /// <summary> /// Adjusts the payment date using the rules of the specified adjuster. /// <para> /// The adjuster is typically an instance of <seealso cref="BusinessDayAdjustment"/>. /// If the date is unchanged by the adjuster, {@code this} payment will be returned. /// /// </para> /// </summary> /// <param name="adjuster"> the adjuster to apply to the payment date </param> /// <returns> the adjusted payment </returns> public Payment adjustDate(TemporalAdjuster adjuster) { LocalDate adjusted = date.with(adjuster); return(adjusted.Equals(date) ? this : toBuilder().date(adjusted).build()); }
/// <summary> /// {@inheritDoc} </summary> /// <exception cref="DateTimeException"> {@inheritDoc} </exception> /// <exception cref="ArithmeticException"> {@inheritDoc} </exception> public override MinguoDate With(TemporalAdjuster adjuster) { return(base.With(adjuster)); }
//------------------------------------------------------------------------- public RatePaymentPeriod adjustPaymentDate(TemporalAdjuster adjuster) { LocalDate adjusted = paymentDate.with(adjuster); return(adjusted.Equals(paymentDate) ? this : toBuilder().paymentDate(adjusted).build()); }
public CapitalIndexedBondPaymentPeriod adjustPaymentDate(TemporalAdjuster adjuster) { return(this); }
/// <summary> /// {@inheritDoc} </summary> /// <exception cref="DateTimeException"> {@inheritDoc} </exception> /// <exception cref="ArithmeticException"> {@inheritDoc} </exception> public override JapaneseDate With(TemporalAdjuster adjuster) { return(base.With(adjuster)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Override @SuppressWarnings("unchecked") public D with(java.time.temporal.TemporalAdjuster adjuster) public override D With(TemporalAdjuster adjuster) { return((D)ChronoLocalDate.this.with(adjuster)); }
/// <summary> /// {@inheritDoc} </summary> /// <exception cref="DateTimeException"> {@inheritDoc} </exception> /// <exception cref="ArithmeticException"> {@inheritDoc} </exception> public override ThaiBuddhistDate With(TemporalAdjuster adjuster) { return(base.With(adjuster)); }
//------------------------------------------------------------------------- public FxResetNotionalExchange adjustPaymentDate(TemporalAdjuster adjuster) { LocalDate adjusted = paymentDate.with(adjuster); return(adjusted.Equals(paymentDate) ? this : new FxResetNotionalExchange(notionalAmount, adjusted, observation)); }
/// <summary> /// {@inheritDoc} </summary> /// <exception cref="DateTimeException"> if unable to make the adjustment. /// For example, if the adjuster requires an ISO chronology </exception> /// <exception cref="ArithmeticException"> {@inheritDoc} </exception> public override HijrahDate With(TemporalAdjuster adjuster) { return(base.With(adjuster)); }