/** * Sets the index name, such as 'GBP-SONIA'. * @param name the new value, not null * @return this, for chaining, not null */ public Builder name(String name) { JodaBeanUtils.notNull(name, "name"); this.name = name; return this; }
/** * Sets the market data value which provides data for multiple scenarios. * @param value the new value, not null * @return this, for chaining, not null */ public Builder<T> value(ScenarioArray<T> value) { JodaBeanUtils.notNull(value, "value"); this.value = value; return this; }
/** * Sets the metadata for the curve. * <p> * This is used to identify the curve and the necessary pieces of market data. * @param curveMetadata the new value, not null * @return this, for chaining, not null */ public Builder curveMetadata(CurveMetadata curveMetadata) { JodaBeanUtils.notNull(curveMetadata, "curveMetadata"); this.curveMetadata = curveMetadata; return this; }
private SimpleCurveParameterMetadata( ValueType xValueType, double xValue) { JodaBeanUtils.notNull(xValueType, "xValueType"); this.xValueType = xValueType; this.xValue = xValue; }
/** * Sets the fixing time. * <p> * The rate is fixed at the fixing time of the fixing date. * @param fixingTime the new value, not null * @return this, for chaining, not null */ public Builder fixingTime(LocalTime fixingTime) { JodaBeanUtils.notNull(fixingTime, "fixingTime"); this.fixingTime = fixingTime; return this; }
/** * Sets the fixing time-zone. * <p> * The time-zone of the fixing time. * @param fixingZone the new value, not null * @return this, for chaining, not null */ public Builder fixingZone(ZoneId fixingZone) { JodaBeanUtils.notNull(fixingZone, "fixingZone"); this.fixingZone = fixingZone; return this; }
private ObjIntPair( A first, int second) { JodaBeanUtils.notNull(first, "first"); this.first = first; this.second = second; }
private ObjDoublePair( A first, double second) { JodaBeanUtils.notNull(first, "first"); this.first = first; this.second = second; }
/** * Sets the day count convention applicable. * <p> * This is used to convert schedule period dates to a numerical value. * @param dayCount the new value, not null * @return this, for chaining, not null */ public Builder dayCount(DayCount dayCount) { JodaBeanUtils.notNull(dayCount, "dayCount"); this.dayCount = dayCount; return this; }
private ValueDerivatives( double value, DoubleArray derivatives) { JodaBeanUtils.notNull(derivatives, "derivatives"); this.value = value; this.derivatives = derivatives; }
private RatesCurveGroupEntry( CurveName curveName, Set<Currency> discountCurrencies, Set<Index> indices) { JodaBeanUtils.notNull(curveName, "curveName"); JodaBeanUtils.notNull(discountCurrencies, "discountCurrencies"); JodaBeanUtils.notNull(indices, "indices"); this.curveName = curveName; this.discountCurrencies = ImmutableSet.copyOf(discountCurrencies); this.indices = ImmutableSet.copyOf(indices); }
private PeriodAdjustment( Period period, PeriodAdditionConvention additionConvention, BusinessDayAdjustment adjustment) { JodaBeanUtils.notNull(period, "period"); JodaBeanUtils.notNull(additionConvention, "additionConvention"); JodaBeanUtils.notNull(adjustment, "adjustment"); this.period = period; this.additionConvention = additionConvention; this.adjustment = adjustment; validate(); }
private ValueSchedule( double initialValue, List<ValueStep> steps, ValueStepSequence stepSequence) { JodaBeanUtils.notNull(steps, "steps"); this.initialValue = initialValue; this.steps = ImmutableList.copyOf(steps); this.stepSequence = stepSequence; }
private DefaultScenarioArray( List<T> values) { JodaBeanUtils.notNull(values, "values"); this.values = ImmutableList.copyOf(values); }
private SingleScenarioMarketData( ScenarioMarketData marketData, int scenarioIndex) { JodaBeanUtils.notNull(marketData, "marketData"); this.marketData = marketData; this.scenarioIndex = scenarioIndex; validate(); }
private FxRate( CurrencyPair pair, double rate) { JodaBeanUtils.notNull(pair, "pair"); ArgChecker.notNegativeOrZero(rate, "rate"); this.pair = pair; this.rate = rate; validate(); }