public static class AstNode.PositionComparator extends Object implements Comparator<AstNode>, Serializable
| Constructor and Description |
|---|
PositionComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(AstNode n1,
AstNode n2)
Sorts nodes by (relative) start position.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(AstNode n1, AstNode n2)
compare in interface Comparator<AstNode>Copyright © 2023 HtmlUnit. All rights reserved.