public class ValueNodeComparator extends Object implements Comparator<ValueNode<?>>, Cloneable
ValueNode instances that supports sorting and comparing records, arrays, and single values.
This comparator delegates to the natural comparison logic defined in ValueNode's compareTo method.ValueNode,
ArrayValue.sort(),
ArrayValue.sort(Comparator)| Modifier and Type | Field and Description |
|---|---|
static ValueNodeComparator |
DEFAULT
A default instance of ValueNodeComparator that can be reused.
|
| Constructor and Description |
|---|
ValueNodeComparator()
Creates a new ValueNodeComparator.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
compare(ValueNode valueNode1,
ValueNode valueNode2)
Compares two ValueNode instances for ordering.
|
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 static final ValueNodeComparator DEFAULT
public ValueNodeComparator()
public int compare(ValueNode valueNode1, ValueNode valueNode2)
compare in interface Comparator<ValueNode<?>>valueNode1 - the first ValueNode to comparevalueNode2 - the second ValueNode to compareCopyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.