public abstract class Holiday extends java.lang.Object implements HolidayI, BaseEntityI
lateOpen
or earlyOpen
or both are specified the market is still open on that day but with unusual trading hours.Modifier and Type | Class and Description |
---|---|
static class |
Holiday.Converter
Converts instances of of
Holiday to corresponding value objects. |
static class |
Holiday.Factory
Constructs new instances of
Holiday . |
Constructor and Description |
---|
Holiday() |
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(EntityVisitor<R,? super P> visitor,
P param) |
HolidayVO |
convertToVO()
converts this domain object (entity) to its corresponding value object
|
java.time.LocalDate |
getDate() |
java.time.LocalTime |
getEarlyClose()
the early closing time of the market on that day.
|
Exchange |
getExchange()
Exchange where securities are traded
|
long |
getId() |
java.time.LocalTime |
getLateOpen()
the late opening time of the market on that day.
|
void |
initializeExchange(Initializer initializer) |
boolean |
isInitialized() |
abstract boolean |
isPartialOpen() |
void |
setDate(java.time.LocalDate date) |
void |
setEarlyClose(java.time.LocalTime earlyClose) |
void |
setExchange(Exchange exchange) |
void |
setId(long id) |
void |
setInitialized() |
void |
setLateOpen(java.time.LocalTime lateOpen) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public boolean isInitialized()
isInitialized
in interface BaseEntityI
public void setInitialized()
public <R,P> R accept(EntityVisitor<R,? super P> visitor, P param)
accept
in interface BaseEntityI
public long getId()
getId
in interface BaseEntityI
getId
in interface HolidayI
public void setId(long id)
public void setDate(java.time.LocalDate date)
public java.time.LocalTime getLateOpen()
getLateOpen
in interface HolidayI
public void setLateOpen(java.time.LocalTime lateOpen)
public java.time.LocalTime getEarlyClose()
getEarlyClose
in interface HolidayI
public void setEarlyClose(java.time.LocalTime earlyClose)
public Exchange getExchange()
public void setExchange(Exchange exchange)
public void initializeExchange(Initializer initializer)
public abstract boolean isPartialOpen()
public HolidayVO convertToVO()