20 package org.sleuthkit.autopsy.commonfilesearch;
22 import java.util.ArrayList;
23 import java.util.Collection;
24 import java.util.Collections;
25 import java.util.HashSet;
26 import java.util.List;
28 import java.util.stream.Collectors;
36 private final String
md5;
47 this.fileInstances =
new ArrayList<>();
60 return this.fileInstances.stream().map(AbstractCommonAttributeInstance::getCaseName).collect(Collectors.joining(
", "));
64 Set<String> sources =
new HashSet<>();
66 sources.add(data.getDataSource());
69 return String.join(
", ", sources);
73 this.fileInstances.add(metadata);
76 public Collection<AbstractCommonAttributeInstance>
getInstances() {
77 return Collections.unmodifiableCollection(this.fileInstances);
87 return this.fileInstances.size();
final List< AbstractCommonAttributeInstance > fileInstances
Collection< AbstractCommonAttributeInstance > getInstances()