19 package org.sleuthkit.autopsy.discovery.search;
21 import java.util.ArrayList;
22 import java.util.Collections;
23 import java.util.List;
24 import org.openide.util.NbBundle.Messages;
29 public class Group implements Comparable<Group> {
45 results =
new ArrayList<>();
46 this.displayName =
groupKey.getDisplayName();
54 void addResult(
Result result) {
87 Collections.sort(results, sorter);
144 @Messages({
"FileGroup.groupSortingAlgorithm.groupSize.text=Group Size",
145 "FileGroup.groupSortingAlgorithm.groupName.text=Group Name"})
174 return Collections.unmodifiableList(results);
List< Result > getResults()
final DiscoveryKeyUtils.GroupKey groupKey
void addDuplicate(AbstractFile duplicate)
void sortResults(ResultsSorter sorter)
int compareTo(Group otherGroup)
Group(Group.GroupSortingAlgorithm groupSortingType, DiscoveryKeyUtils.GroupKey groupKey)
abstract SearchData.Type getType()
static int compareGroupsBySize(Group group1, Group group2)
final Group.GroupSortingAlgorithm groupSortingType
static int compareGroupsByGroupKey(Group group1, Group group2)
DiscoveryKeyUtils.GroupKey getGroupKey()
GroupSortingAlgorithm(String name)
final List< Result > results