ChannelMessageAggregatePerMinuteMessage, AggregatePerSecondMessagepublic class AggregateMessage extends java.lang.Object implements ChannelMessage
| Constructor | Description |
|---|---|
AggregateMessage(ChannelType cType,
java.lang.String ticker,
com.google.gson.JsonObject jsonObject) |
Instantiates a new aggregate message.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
ChannelType |
getChannelType() |
Gets the channel type.
|
java.time.LocalDateTime |
getEnd() |
Gets the end.
|
java.time.LocalDateTime |
getStart() |
Gets the start.
|
StockAggregate |
getStockAggregate() |
Gets the stock aggregate.
|
java.lang.String |
getTicker() |
Gets the ticker.
|
int |
hashCode() |
|
java.lang.String |
toString() |
public AggregateMessage(ChannelType cType, java.lang.String ticker, com.google.gson.JsonObject jsonObject)
cType - the c typeticker - the tickerjsonObject - the json objectpublic java.lang.String getTicker()
ChannelMessagegetTicker in interface ChannelMessagepublic ChannelType getChannelType()
ChannelMessagegetChannelType in interface ChannelMessagepublic StockAggregate getStockAggregate()
public java.time.LocalDateTime getStart()
public java.time.LocalDateTime getEnd()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object