public class NewsEvent extends Object implements Serializable, Comparable<NewsEvent>
Modifier and Type | Class and Description |
---|---|
static class |
NewsEvent.Builder
Builder class for
NewsEvent . |
Modifier and Type | Field and Description |
---|---|
static String |
MESSAGE_SYMBOL
Symbol used for QD Stream Subscription.
|
Modifier | Constructor and Description |
---|---|
protected |
NewsEvent(NewsEvent.Builder builder) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NewsEvent o)
Events are naturally ordered by their arrival time to the news storage.
|
boolean |
equals(Object o) |
String |
getBody()
Returns news body, or
null . |
String |
getFeed()
Returns news feed ID.
|
NewsKey |
getKey()
Returns news key for identifying news.
|
String |
getSource()
Returns news source provider.
|
String |
getSourceId()
Returns external ID assigned by news provider.
|
List<String> |
getSymbols()
Returns set of instrument symbols for this news, or
null if not present. |
Map<String,List<String>> |
getTags()
Returns set of custom tags available for the news.
|
long |
getTime()
Returns news time.
|
String |
getTitle()
Returns news title.
|
int |
hashCode() |
static NewsEvent.Builder |
newBuilder() |
String |
toString() |
public static final String MESSAGE_SYMBOL
protected NewsEvent(NewsEvent.Builder builder)
public static NewsEvent.Builder newBuilder()
public NewsKey getKey()
public String getFeed()
public String getSourceId()
public String getSource()
public long getTime()
public String getTitle()
public String getBody()
null
.public List<String> getSymbols()
null
if not present.public Map<String,List<String>> getTags()
null
but can be empty.public int compareTo(NewsEvent o)
compareTo
in interface Comparable<NewsEvent>
Copyright © 2022 Devexperts. All rights reserved.