public abstract class Future extends SecurityImpl implements FutureI, ExpirableI, BaseEntityI
Modifier and Type | Class and Description |
---|---|
static class |
Future.Converter
Converts instances of of
Future to corresponding value objects. |
static class |
Future.Factory
Constructs new instances of
Future . |
Constructor and Description |
---|
Future() |
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(EntityVisitor<R,? super P> visitor,
P param) |
FutureVO |
convertToVO()
converts this domain object (entity) to its corresponding value object
|
java.time.LocalDate |
getExpiration()
The Last Trading / Expiration Date
|
java.time.LocalDate |
getFirstNotice()
The first notice date
|
java.lang.String |
getMonthYear()
The month and year in the format "yyyymm".
|
abstract long |
getTimeToExpiration(java.time.ZonedDateTime dateTime)
Gets the time-to-expiration in milliseconds from the specified
dateTime |
boolean |
isInitialized() |
void |
setExpiration(java.time.LocalDate expiration) |
void |
setFirstNotice(java.time.LocalDate firstNotice) |
void |
setInitialized() |
void |
setMonthYear(java.lang.String monthYear) |
adjustPrice, adjustPrice, equals, getPrice, getPrice, getPriceScale, getQuantityScale, getSpreadTicks, getValue, getValue, hashCode, initializeExchange, roundDown, roundDown, roundUp, roundUp, toString
getAdapterTicker, getBbgid, getCngAdapterTicker, getCngid, getCnpid, getConid, getContractSize, getDescription, getExchange, getId, getIsin, getLmaxid, getMaxGap, getMaxPrice, getMaxQty, getMinNotional, getMinPrice, getMinQty, getPriceIncr, getQtyIncr, getQuandlDatabase, getQuandlDataset, getRic, getSecurityFamily, getSymbol, getTransactionCurrency, getTtid, getUnderlying, getXntid, initializeSecurityFamily, initializeUnderlying, isSynthetic, isTradeable, setAdapterTicker, setBbgid, setCngAdapterTicker, setCngid, setCnpid, setConid, setContractSize, setDescription, setExchange, setId, setIsin, setLmaxid, setMaxGap, setMaxPrice, setMaxQty, setMinNotional, setMinPrice, setMinQty, setPriceIncr, setQtyIncr, setQuandlDatabase, setQuandlDataset, setRic, setSecurityFamily, setSymbol, setSynthetic, setTradeable, setTransactionCurrency, setTtid, setUnderlying, setXntid
addProperty, clearProperties, getBooleanProperty, getDateProperty, getDoubleProperty, getIntProperty, getMoneyProperty, getProperties, getPropertiesCount, getProperty, getProperty, getPropertyNames, getTextProperty, hasProperty, removeProperty, setProperties
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAdapterTicker, getBbgid, getCngAdapterTicker, getCngid, getCnpid, getConid, getContractSize, getDescription, getId, getIsin, getLmaxid, getMaxGap, getMaxPrice, getMaxQty, getMinNotional, getMinPrice, getMinQty, getPriceIncr, getQtyIncr, getQuandlDatabase, getQuandlDataset, getRic, getSymbol, getTransactionCurrency, getTtid, getXntid, isSynthetic, isTradeable
getId, toString
public boolean isInitialized()
isInitialized
in interface BaseEntityI
isInitialized
in class Security
public void setInitialized()
setInitialized
in class Security
public <R,P> R accept(EntityVisitor<R,? super P> visitor, P param)
accept
in interface BaseEntityI
accept
in class Security
public java.time.LocalDate getExpiration()
getExpiration
in interface ExpirableI
getExpiration
in interface FutureI
public void setExpiration(java.time.LocalDate expiration)
setExpiration
in interface ExpirableI
public java.lang.String getMonthYear()
getMonthYear
in interface FutureI
public void setMonthYear(java.lang.String monthYear)
public java.time.LocalDate getFirstNotice()
getFirstNotice
in interface FutureI
public void setFirstNotice(java.time.LocalDate firstNotice)
public abstract long getTimeToExpiration(java.time.ZonedDateTime dateTime)
dateTime
getTimeToExpiration
in interface ExpirableI
dateTime
- to calculate the expiry topublic FutureVO convertToVO()
convertToVO
in class Security