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()
void
add(int index, Var item)
void
add(VarContract vc)
void
add(Var item)
void
clear()
boolean
contains(VarContract vc)
boolean
contains(String tenor)
List<VarContract>
contracts()
VarContracts
filter(VarContracts vcs)
VarContracts
filter(String type)
Var
get(int index)
VarContract
get(CurveTenor tenor)
Var
get(Var index)
VarContract
get(String tenor)
VarContract
get(String tenor, boolean ignoreTimezone)
List<Var>
getElements()
String
getId()
Map<PeriodCode,VarContract>
getProperties()
VarType
getType()
void
remove(VarContract vc)
void
removeMissing()
Var
set_Id(String id)
int
size()
String
toString()
Methods inherited from class com.walkfares.odsl.var.BaseVar
add, applyChanges, getLinks, getTypeName, getUID, setLinks, tryConvert
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
clear
in interfaceListProvider
-
contracts
-
add
- Specified by:
add
in interfaceListProvider
-
add
- Specified by:
add
in interfaceListProvider
-
get
- Specified by:
get
in interfaceListProvider
-
get
- Specified by:
get
in interfaceListProvider
-
size
public int size()- Specified by:
size
in interfaceListProvider
-
getElements
- Specified by:
getElements
in interfaceListProvider
-
toString
-