19 package org.sleuthkit.autopsy.timeline.datamodel;
21 import com.google.common.base.Preconditions;
22 import com.google.common.collect.ImmutableSet;
23 import com.google.common.collect.ImmutableSortedSet;
24 import java.util.Comparator;
25 import java.util.Optional;
26 import java.util.SortedSet;
27 import javax.annotation.concurrent.Immutable;
28 import org.python.google.common.base.Objects;
40 Preconditions.checkNotNull(u);
41 Preconditions.checkNotNull(v);
43 Preconditions.checkArgument(Objects.equal(u.
lod, v.
lod));
44 Preconditions.checkArgument(Objects.equal(u.
type, v.
type));
45 Preconditions.checkArgument(Objects.equal(u.
parent, v.
parent));
51 private final ImmutableSortedSet<EventCluster>
clusters;
77 private final ImmutableSet<Long>
tagged;
85 EventStripe eventStripe =
new EventStripe(parent, this.type, this.description, this.lod, clusters, eventIDs, tagged, hashHits);
103 .add(cluster).build();
123 eventIDs = ImmutableSet.<Long>builder()
127 tagged = ImmutableSet.<Long>builder()
131 hashHits = ImmutableSet.<Long>builder()
140 return Optional.ofNullable(parent);
159 @SuppressWarnings(
"ReturnOfCollectionOrArrayField")
165 @SuppressWarnings(
"ReturnOfCollectionOrArrayField")
171 @SuppressWarnings(
"ReturnOfCollectionOrArrayField")
178 return clusters.first().getStartMillis();
183 return clusters.last().getEndMillis();
187 @SuppressWarnings(
"ReturnOfCollectionOrArrayField")
194 return "EventStripe{" +
"description=" + description +
", eventIDs=" + eventIDs.size() +
'}';
ImmutableSet< Long > getEventIDsWithHashHits()
Optional< EventCluster > getParentBundle()
EventStripe(EventCluster cluster, EventCluster parent)
EventStripe(EventCluster parent, EventType type, String description, DescriptionLoD lod, SortedSet< EventCluster > clusters, ImmutableSet< Long > eventIDs, ImmutableSet< Long > tagged, ImmutableSet< Long > hashHits)
final ImmutableSet< Long > eventIDs
EventStripe withParent(EventCluster parent)
DescriptionLoD getDescriptionLoD()
EventStripe(EventStripe u, EventStripe v)
ImmutableSet< Long > getEventIDs()
static EventStripe merge(EventStripe u, EventStripe v)
final ImmutableSet< Long > tagged
final EventCluster parent
final ImmutableSet< Long > hashHits
final ImmutableSortedSet< EventCluster > clusters
ImmutableSet< Long > getEventIDsWithTags()
ImmutableSet< Long > getEventIDsWithHashHits()
DescriptionLoD getDescriptionLoD()
ImmutableSortedSet< EventCluster > getClusters()
ImmutableSet< Long > getEventIDs()
ImmutableSet< Long > getEventIDsWithTags()