19 package org.sleuthkit.autopsy.modules.hashdatabase;
21 import java.util.Collection;
22 import java.util.List;
23 import org.openide.nodes.ChildFactory;
24 import org.openide.nodes.Node;
33 class HashDbSearchResultFactory
extends ChildFactory<AbstractFile> {
35 Collection<AbstractFile> kvContents;
37 HashDbSearchResultFactory(Collection<AbstractFile> kvContents) {
38 this.kvContents = kvContents;
42 protected boolean createKeys(List<AbstractFile> toPopulate) {
43 toPopulate.addAll(kvContents);
48 protected Node createNodeForKey(AbstractFile content) {
49 return new FilterNodeLeaf(
new FileNode(content,
false));