19 package org.sleuthkit.autopsy.timeline.datamodel;
 
   21 import com.google.common.collect.ImmutableMap;
 
   22 import com.google.common.collect.ImmutableSortedSet;
 
   23 import java.util.Collections;
 
   24 import java.util.Comparator;
 
   25 import java.util.Optional;
 
   27 import java.util.SortedSet;
 
   28 import javax.annotation.Nullable;
 
   29 import javax.annotation.concurrent.Immutable;
 
   30 import org.joda.time.Interval;
 
   76     private final TskData.FileKnown 
known;
 
   95     public SingleEvent(
long eventID, 
long dataSourceID, 
long objID, @Nullable Long artifactID, 
long time, 
EventType type, String fullDescription, String medDescription, String shortDescription, TskData.FileKnown 
known, 
boolean hashHit, 
boolean tagged) {
 
   99         this.artifactID = Long.valueOf(0).equals(artifactID) ? null : 
artifactID;
 
  120         SingleEvent singleEvent = 
new SingleEvent(eventID, dataSourceID, objID, artifactID, time, type, descriptions.get(
DescriptionLoD.
FULL), descriptions.get(
DescriptionLoD.
MEDIUM), descriptions.get(
DescriptionLoD.
SHORT), 
known, 
hashHit, 
tagged);
 
  121         singleEvent.
parent = newParent;
 
  153         return Optional.ofNullable(artifactID);
 
  232         return descriptions.get(lod);
 
  246         return Collections.singleton(eventID);
 
  251         return isHashHit() ? Collections.singleton(eventID) : Collections.emptySet();
 
  256         return isTagged() ? Collections.singleton(eventID) : Collections.emptySet();
 
  272         hash = 13 * hash + (int) (this.eventID ^ (this.eventID >>> 32));
 
  281         if (getClass() != obj.getClass()) {
 
  285         if (this.eventID != other.
eventID) {
 
  317         if (parent == null) {
 
  318             return Optional.empty();
 
  320             return Optional.of((EventStripe) parent);
 
  322             return parent.getParentStripe();
 
Optional< Long > getArtifactID()
DescriptionLoD getDescriptionLoD()
boolean equals(Object obj)
Set< Long > getEventIDsWithTags()
SingleEvent(long eventID, long dataSourceID, long objID,@Nullable Long artifactID, long time, EventType type, String fullDescription, String medDescription, String shortDescription, TskData.FileKnown known, boolean hashHit, boolean tagged)
String getShortDescription()
Optional< EventStripe > getParentStripe()
String getDescription(DescriptionLoD lod)
final ImmutableMap< DescriptionLoD, String > descriptions
Set< Long > getEventIDsWithHashHits()
final TskData.FileKnown known
String getMedDescription()
String getFullDescription()
TskData.FileKnown getKnown()
SingleEvent withParent(MultiEvent<?> newParent)
Set< Long > getEventIDs()
SortedSet< EventCluster > getClusters()