public class ReferenceComparator extends Object implements Comparator<Reference>
Comparator
. Compares two
virtualized nodes based on an ordered collection of property names. The
property with the lower index in the collection of properties is the more
significant (with the highest-order) one in the comparison process.Constructor and Description |
---|
ReferenceComparator(VirtualStore smartStore,
List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,Boolean>> sortProps) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Reference r1,
Reference r2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public ReferenceComparator(VirtualStore smartStore, List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,Boolean>> sortProps)
public int compare(Reference r1, Reference r2)
compare
in interface Comparator<Reference>
Copyright © 2005–2017 Alfresco Software. All rights reserved.