Go to the documentation of this file.
19package org.sleuthkit.autopsy.timeline.ui.detailview.tree;
21import java.util.Comparator;
22import javafx.scene.control.TreeItem;
23import org.openide.util.NbBundle;
24import org.sleuthkit.autopsy.timeline.ui.detailview.datamodel.DetailViewEvent;
29@NbBundle.Messages({
"TreeComparator.Description.displayName=Description",
30 "TreeComparator.Count.displayName=Count",
31 "TreeComparator.Type.displayName=Type"})
34 Description(Bundle.TreeComparator_Description_displayName()) {
36 public int compare(TreeItem<DetailViewEvent> item1, TreeItem<DetailViewEvent> item2) {
37 return item1.getValue().getDescription().compareTo(item2.getValue().getDescription());
40 Count(Bundle.TreeComparator_Count_displayName()) {
42 public int compare(TreeItem<DetailViewEvent> item1, TreeItem<DetailViewEvent> item2) {
43 return Long.compare(item2.getValue().getSize(), item1.getValue().getSize());
46 Type(Bundle.TreeComparator_Type_displayName()) {
48 public int compare(TreeItem<DetailViewEvent> item1, TreeItem<DetailViewEvent> item2) {
49 return item1.getValue().getEventType().compareTo(item2.getValue().getEventType());
TreeComparator(String displayName)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.