T
- type of nodes in the tree-like hierarchypublic abstract class TreeHierarchyComparator<T>
extends java.lang.Object
implements java.util.Comparator<T>
compareOnSameDepth(Object, Object)
Modifier and Type | Class and Description |
---|---|
static interface |
TreeHierarchyComparator.ParentsResolver<T> |
Constructor and Description |
---|
TreeHierarchyComparator(boolean cacheProjectPaths,
TreeHierarchyComparator.ParentsResolver<T> parentsResolver) |
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
protected abstract int |
compareOnSameDepth(T o1,
T o2) |
boolean |
isParent(T child,
T parent) |
protected int |
isRoot(T o1) |
protected int |
onSamePath(T left,
T right) |
public TreeHierarchyComparator(boolean cacheProjectPaths, @NotNull TreeHierarchyComparator.ParentsResolver<T> parentsResolver)
protected int isRoot(T o1)