- java.lang.Object
-
- org.quantlib.Observable
-
- org.quantlib.LazyObject
-
- org.quantlib.Instrument
-
- org.quantlib.Swap
-
- All Implemented Interfaces:
AutoCloseable,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
- Direct Known Subclasses:
ArithmeticAverageOIS,AssetSwap,CPISwap,EquityTotalReturnSwap,FloatFloatSwap,NonstandardSwap,OvernightIndexedSwap,VanillaSwap,YearOnYearInflationSwap,ZeroCouponInflationSwap,ZeroCouponSwap
public class Swap extends Instrument implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSwap.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()doubleendDiscounts(long j)protected voidfinalize()protected static longgetCPtr(Swap obj)Legleg(long i)doublelegBPS(long k)doublelegNPV(long j)DatematurityDate()doublenpvDateDiscount()longnumberOfLegs()booleanpayer(long j)DatestartDate()doublestartDiscounts(long j)protected voidswigSetCMemOwn(boolean own)-
Methods inherited from class org.quantlib.Instrument
errorEstimate, getCPtr, isExpired, NPV, setPricingEngine
-
Methods inherited from class org.quantlib.LazyObject
alwaysForwardNotifications, forwardFirstNotificationOnly, forwardsAllNotifications, freeze, getCPtr, recalculate, unfreeze
-
Methods inherited from class org.quantlib.Observable
getCPtr
-
-
-
-
Method Detail
-
swigSetCMemOwn
protected void swigSetCMemOwn(boolean own)
- Overrides:
swigSetCMemOwnin classInstrument
-
finalize
protected void finalize()
- Overrides:
finalizein classInstrument
-
delete
public void delete()
- Specified by:
deletein interfaceorg.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable- Overrides:
deletein classInstrument
-
numberOfLegs
public long numberOfLegs()
-
maturityDate
public Date maturityDate()
-
legNPV
public double legNPV(long j)
-
legBPS
public double legBPS(long k)
-
startDiscounts
public double startDiscounts(long j)
-
endDiscounts
public double endDiscounts(long j)
-
npvDateDiscount
public double npvDateDiscount()
-
payer
public boolean payer(long j)
-
-