19 package org.sleuthkit.autopsy.timeline.ui.detailview.tree;
21 import java.util.Comparator;
22 import javafx.scene.control.TreeItem;
25 enum TreeComparator implements Comparator<TreeItem<NavTreeNode>> {
29 public int compare(TreeItem<NavTreeNode> o1, TreeItem<NavTreeNode> o2) {
30 return o1.getValue().getDescription().compareTo(o2.getValue().getDescription());
35 public int compare(TreeItem<NavTreeNode> o1, TreeItem<NavTreeNode> o2) {
37 return -Integer.compare(o1.getValue().getCount(), o2.getValue().getCount());
42 public int compare(TreeItem<NavTreeNode> o1, TreeItem<NavTreeNode> o2) {
43 return EventType.
getComparator().compare(o1.getValue().getType(), o2.getValue().getType());
static Comparator< EventType > getComparator()