Class CompareTree
java.lang.Object
org.pgcodekeeper.core.model.difftree.CompareTree
- All Implemented Interfaces:
Comparator<TreeElement>
Comparator for TreeElement objects that provides custom sorting logic
based on element types and diff sides during schema comparison operations.
Prioritizes deletions (LEFT), then creations (RIGHT), then modifications (BOTH).
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CompareTree
public CompareTree()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<TreeElement>
-