- java.lang.Object
-
- org.quantlib.Currency
-
- All Implemented Interfaces:
AutoCloseable,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
- Direct Known Subclasses:
AEDCurrency,AOACurrency,ARSCurrency,ATSCurrency,AUDCurrency,BCHCurrency,BDTCurrency,BEFCurrency,BGLCurrency,BGNCurrency,BHDCurrency,BRLCurrency,BTCCurrency,BWPCurrency,BYRCurrency,CADCurrency,CHFCurrency,CLFCurrency,CLPCurrency,CNHCurrency,CNYCurrency,COPCurrency,COUCurrency,CYPCurrency,CZKCurrency,DASHCurrency,DEMCurrency,DKKCurrency,EEKCurrency,EGPCurrency,ESPCurrency,ETBCurrency,ETCCurrency,ETHCurrency,EURCurrency,FIMCurrency,FRFCurrency,GBPCurrency,GELCurrency,GHSCurrency,GRDCurrency,HKDCurrency,HRKCurrency,HUFCurrency,IDRCurrency,IEPCurrency,ILSCurrency,INRCurrency,IQDCurrency,IRRCurrency,ISKCurrency,ITLCurrency,JODCurrency,JPYCurrency,KESCurrency,KRWCurrency,KWDCurrency,KZTCurrency,LKRCurrency,LTCCurrency,LTLCurrency,LUFCurrency,LVLCurrency,MADCurrency,MTLCurrency,MURCurrency,MXNCurrency,MXVCurrency,MYRCurrency,NGNCurrency,NLGCurrency,NOKCurrency,NPRCurrency,NZDCurrency,OMRCurrency,PEHCurrency,PEICurrency,PENCurrency,PHPCurrency,PKRCurrency,PLNCurrency,PTECurrency,QARCurrency,ROLCurrency,RONCurrency,RSDCurrency,RUBCurrency,SARCurrency,SEKCurrency,SGDCurrency,SITCurrency,SKKCurrency,THBCurrency,TNDCurrency,TRLCurrency,TRYCurrency,TTDCurrency,TWDCurrency,UAHCurrency,UGXCurrency,USDCurrency,UYUCurrency,VEBCurrency,VNDCurrency,XOFCurrency,XRPCurrency,ZARCurrency,ZECCurrency,ZMWCurrency
public class Currency extends Object implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description Currency()protectedCurrency(long cPtr, boolean cMemoryOwn)Currency(String name, String code, int numericCode, String symbol, String fractionSymbol, int fractionsPerUnit, Rounding rounding, String formatString)Currency(String name, String code, int numericCode, String symbol, String fractionSymbol, int fractionsPerUnit, Rounding rounding, String formatString, Currency triangulationCurrency)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcode()voiddelete()booleanempty()booleanequals(Currency other)protected voidfinalize()Stringformat()intfractionsPerUnit()StringfractionSymbol()protected static longgetCPtr(Currency obj)Stringname()intnumericCode()Roundingrounding()protected static longswigRelease(Currency obj)Stringsymbol()StringtoString()CurrencytriangulationCurrency()booleanunEquals(Currency other)
-
-
-
Field Detail
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Detail
-
Currency
protected Currency(long cPtr, boolean cMemoryOwn)
-
Currency
public Currency()
-
Currency
public Currency(String name, String code, int numericCode, String symbol, String fractionSymbol, int fractionsPerUnit, Rounding rounding, String formatString, Currency triangulationCurrency)
-
-
Method Detail
-
swigRelease
protected static long swigRelease(Currency obj)
-
delete
public void delete()
- Specified by:
deletein interfaceorg.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
numericCode
public int numericCode()
-
fractionSymbol
public String fractionSymbol()
-
fractionsPerUnit
public int fractionsPerUnit()
-
empty
public boolean empty()
-
triangulationCurrency
public Currency triangulationCurrency()
-
-