/** * Gets the Ibor index that the sensitivity refers to. * * @return the Ibor index */ public PriceIndex getIndex() { return observation.getIndex(); }
/** * Gets the Price index. * * @return the Price index */ public PriceIndex getIndex() { return endObservation.getIndex(); }
/** * Gets the Price index. * * @return the Price index */ public PriceIndex getIndex() { return endObservation.getIndex(); }
/** * Gets the Price index. * * @return the Price index */ public PriceIndex getIndex() { return startObservation.getIndex(); }
/** * Gets the Price index. * * @return the Price index */ public PriceIndex getIndex() { return startObservation.getIndex(); }
@Override protected Object propertyGet(Bean bean, String propertyName, boolean quiet) { switch (propertyName.hashCode()) { case 100346066: // index return ((PriceIndexObservation) bean).getIndex(); case 265281235: // fixingMonth return ((PriceIndexObservation) bean).getFixingMonth(); } return super.propertyGet(bean, propertyName, quiet); }
@ImmutableValidator private void validate() { ArgChecker.isTrue( endObservation.getIndex().equals(endSecondObservation.getIndex()), "Both observations must be for the same index"); ArgChecker.inOrderNotEqual( endObservation.getFixingMonth(), endSecondObservation.getFixingMonth(), "endObservation", "endSecondObservation"); }
@ImmutableValidator private void validate() { ArgChecker.isTrue( startObservation.getIndex().equals(endObservation.getIndex()), "Both observations must be for the same index"); ArgChecker.inOrderNotEqual( startObservation.getFixingMonth(), endObservation.getFixingMonth(), "referenceStartMonth", "referenceEndMonth"); }
@ImmutableValidator private void validate() { ArgChecker.isTrue( startObservation.getIndex().equals(endObservation.getIndex()), "All observations must be for the same index"); ArgChecker.isTrue( startObservation.getIndex().equals(startSecondObservation.getIndex()), "All observations must be for the same index"); ArgChecker.isTrue( startObservation.getIndex().equals(endSecondObservation.getIndex()), "All observations must be for the same index"); ArgChecker.inOrderNotEqual( startObservation.getFixingMonth(), startSecondObservation.getFixingMonth(), "startObservation", "startSecondObservation"); ArgChecker.inOrderOrEqual( startSecondObservation.getFixingMonth(), endObservation.getFixingMonth(), "startSecondObservation", "endObservation"); ArgChecker.inOrderNotEqual( endObservation.getFixingMonth(), endSecondObservation.getFixingMonth(), "endObservation", "endSecondObservation"); }
public void test_of() { PriceIndexObservation test = PriceIndexObservation.of(GB_HICP, FIXING_MONTH); assertEquals(test.getIndex(), GB_HICP); assertEquals(test.getFixingMonth(), FIXING_MONTH); assertEquals(test.getCurrency(), GB_HICP.getCurrency()); assertEquals(test.toString(), "PriceIndexObservation[GB-HICP on 2016-02]"); }