Package org.alfresco.repo.virtual.store
Class ReferenceComparator
- java.lang.Object
-
- org.alfresco.repo.virtual.store.ReferenceComparator
-
- All Implemented Interfaces:
Comparator<Reference>
public class ReferenceComparator extends Object implements Comparator<Reference>
Property value based virtual nodesComparator. 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.- Author:
- Silviu Dinuta
-
-
Constructor Summary
Constructors Constructor Description ReferenceComparator(VirtualStore smartStore, List<Pair<QName,Boolean>> sortProps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Reference r1, Reference r2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
ReferenceComparator
public ReferenceComparator(VirtualStore smartStore, List<Pair<QName,Boolean>> sortProps)
-
-
Method Detail
-
compare
public int compare(Reference r1, Reference r2)
- Specified by:
comparein interfaceComparator<Reference>
-
-