final double interestRateBump = 1.0;
// -------------------------------------------------------------------------------------
// Create a CS01 calculator object
final IR01CreditDefaultSwap ir01 = new IR01CreditDefaultSwap();
// Compute the IR01 for a parallel shift
final double parallelIR01 = ir01.getIR01ParallelShiftCreditDefaultSwap(valuationDate, cds, yieldDateCurve, tenors, marketSpreads, interestRateBump, interestRateBumpType, priceType);
// -------------------------------------------------------------------------------------
if (outputResults) {
System.out.println("CDS IR01 = " + parallelIR01);