26public final class TimelineEvent {
31 private final long eventID;
40 private final long contentObjID;
46 private final Long artifactID;
51 private final long dataSourceObjID;
56 private final long time;
68 private final TimelineEventDescription descriptions;
74 private final boolean eventSourceHashHitDetected;
80 private final boolean eventSourceTagged;
118 TimelineEvent(
long eventID,
119 long dataSourceObjID,
124 String fullDescription,
125 String medDescription,
126 String shortDescription,
127 boolean eventSourceHashHitDetected,
128 boolean eventSourceTagged) {
129 this.eventID = eventID;
130 this.dataSourceObjID = dataSourceObjID;
131 this.contentObjID = contentObjID;
132 this.artifactID = Long.valueOf(0).equals(artifactID) ? null : artifactID;
142 if (type instanceof TimelineEventTypeImpl) {
143 this.descriptions = ((TimelineEventTypeImpl) type).parseDescription(fullDescription, medDescription, shortDescription);
145 this.descriptions =
new TimelineEventDescription(fullDescription, medDescription, shortDescription);
147 this.eventSourceHashHitDetected = eventSourceHashHitDetected;
148 this.eventSourceTagged = eventSourceTagged;
158 return eventSourceTagged;
169 return eventSourceHashHitDetected;
179 return Optional.ofNullable(artifactID);
230 return descriptions.getDescription(levelOfDetail);
240 return dataSourceObjID;
255 hash = 13 * hash + (int) (this.eventID ^ (this.eventID >>> 32));
264 if (getClass() != obj.getClass()) {
267 final TimelineEvent other = (TimelineEvent) obj;