public override object build <T1>(Type beanType, BeanBuilder <T1> builder) { //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: org.joda.beans.impl.BufferingBeanBuilder<?> bld = (org.joda.beans.impl.BufferingBeanBuilder<?>) builder; BufferingBeanBuilder <object> bld = (BufferingBeanBuilder <object>)builder; //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: java.util.concurrent.ConcurrentMap<org.joda.beans.MetaProperty<?>, Object> buffer = bld.getBuffer(); ConcurrentMap <MetaProperty <object>, object> buffer = bld.Buffer; BusinessDayAdjustment bda = (BusinessDayAdjustment)buffer.getOrDefault(PAYMENT_ADJUSTMENT_DATE, null); if (buffer.containsKey(BASE_CURRENCY_AMOUNT) && buffer.containsKey(COUNTER_CURRENCY_AMOUNT) && buffer.containsKey(PAYMENT_DATE)) { CurrencyAmount baseAmount = (CurrencyAmount)builder.get(BASE_CURRENCY_AMOUNT); CurrencyAmount counterAmount = (CurrencyAmount)builder.get(COUNTER_CURRENCY_AMOUNT); LocalDate paymentDate = (LocalDate)builder.get(PAYMENT_DATE); return(bda != null?FxSingle.of(baseAmount, counterAmount, paymentDate, bda) : FxSingle.of(baseAmount, counterAmount, paymentDate)); } else { Payment basePayment = (Payment)buffer.get(BASE_CURRENCY_PAYMENT); Payment counterPayment = (Payment)buffer.get(COUNTER_CURRENCY_PAYMENT); return(bda != null?FxSingle.of(basePayment, counterPayment, bda) : FxSingle.of(basePayment, counterPayment)); } }
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: @Override public org.joda.beans.BeanBuilder<?> createBuilder(Class beanType, org.joda.beans.MetaBean metaBean) public override BeanBuilder <object> createBuilder(Type beanType, MetaBean metaBean) { return(BufferingBeanBuilder.of(metaBean)); }