ChannelMessage
AggregatePerMinuteMessage
, AggregatePerSecondMessage
public 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()
ChannelMessage
getTicker
in interface ChannelMessage
public ChannelType getChannelType()
ChannelMessage
getChannelType
in interface ChannelMessage
public StockAggregate getStockAggregate()
public java.time.LocalDateTime getStart()
public java.time.LocalDateTime getEnd()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object