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;
 
   41         this.fileInstances = 
new ArrayList<>();
 
   54         return this.fileInstances.stream().map(AbstractCommonAttributeInstance::getCaseName).collect(Collectors.joining(
", "));
 
   58         Set<String> sources = 
new HashSet<>();
 
   60             sources.add(data.getDataSource());
 
   63         return String.join(
", ", sources);
 
   67         this.fileInstances.add(metadata);
 
   70     public Collection<AbstractCommonAttributeInstance> 
getInstances() {
 
   71         return Collections.unmodifiableCollection(this.fileInstances);
 
   81         return this.fileInstances.size();
 
final List< AbstractCommonAttributeInstance > fileInstances
 
Collection< AbstractCommonAttributeInstance > getInstances()