public class Clock
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Clock()
No args constructor for use in serialization
|
Clock(java.time.ZonedDateTime timestamp,
java.lang.Boolean isOpen,
java.time.ZonedDateTime nextOpen,
java.time.ZonedDateTime nextClose) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.lang.Boolean |
getIsOpen()
Whether or not the market is open
|
java.time.ZonedDateTime |
getNextClose()
Next market close timestamp
|
java.time.ZonedDateTime |
getNextOpen()
Next market open timestamp
|
java.time.ZonedDateTime |
getTimestamp()
Current timestamp
|
int |
hashCode() |
void |
setIsOpen(java.lang.Boolean isOpen)
Whether or not the market is open
|
void |
setNextClose(java.time.ZonedDateTime nextClose)
Next market close timestamp
|
void |
setNextOpen(java.time.ZonedDateTime nextOpen)
Next market open timestamp
|
void |
setTimestamp(java.time.ZonedDateTime timestamp)
Current timestamp
|
java.lang.String |
toString() |
public Clock()
public Clock(java.time.ZonedDateTime timestamp,
java.lang.Boolean isOpen,
java.time.ZonedDateTime nextOpen,
java.time.ZonedDateTime nextClose)
isOpen - nextOpen - nextClose - timestamp - public java.time.ZonedDateTime getTimestamp()
public void setTimestamp(java.time.ZonedDateTime timestamp)
public java.lang.Boolean getIsOpen()
public void setIsOpen(java.lang.Boolean isOpen)
public java.time.ZonedDateTime getNextOpen()
public void setNextOpen(java.time.ZonedDateTime nextOpen)
public java.time.ZonedDateTime getNextClose()
public void setNextClose(java.time.ZonedDateTime nextClose)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object