Package com.walkfares.odsl.var.curve
Class VarContracts
java.lang.Object
com.walkfares.odsl.var.BaseVar
com.walkfares.odsl.var.curve.VarContracts
- All Implemented Interfaces:
ListProvider,Var
public class VarContracts extends BaseVar implements ListProvider
A dynamic list of forward contracts accessible as e.g. curve.contracts.M01
-
Constructor Summary
Constructors Constructor Description VarContracts() -
Method Summary
Modifier and Type Method Description Var_clone()voidadd(int index, Var item)voidadd(VarContract vc)voidadd(Var item)voidclear()booleancontains(VarContract vc)booleancontains(String tenor)List<VarContract>contracts()VarContractsfilter(VarContracts vcs)VarContractsfilter(String type)Varget(int index)VarContractget(CurveTenor tenor)Varget(Var index)VarContractget(String tenor)VarContractget(String tenor, boolean ignoreTimezone)List<Var>getElements()StringgetId()Map<PeriodCode,VarContract>getProperties()VarTypegetType()voidremove(VarContract vc)voidremoveMissing()Varset_Id(String id)intsize()StringtoString()Methods inherited from class com.walkfares.odsl.var.BaseVar
add, applyChanges, getLinks, getTypeName, getUID, setLinks, tryConvertMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.walkfares.odsl.var.Var
applyChanges, DATE, DATE_NULL, DYNAMIC, getReference, getTypeName, getUID, isEmpty, LIST, SCALAR, setId, tryConvert
-
Constructor Details
-
VarContracts
public VarContracts()
-
-
Method Details
-
getType
-
getId
-
set_Id
-
_clone
-
getProperties
-
add
-
remove
-
filter
-
filter
-
removeMissing
public void removeMissing() -
contains
-
contains
-
get
-
get
-
get
-
clear
public void clear()- Specified by:
clearin interfaceListProvider
-
contracts
-
add
- Specified by:
addin interfaceListProvider
-
add
- Specified by:
addin interfaceListProvider
-
get
- Specified by:
getin interfaceListProvider
-
get
- Specified by:
getin interfaceListProvider
-
size
public int size()- Specified by:
sizein interfaceListProvider
-
getElements
- Specified by:
getElementsin interfaceListProvider
-
toString
-