Class ReferenceComparator

  • All Implemented Interfaces:
    java.util.Comparator<Reference>

    public class ReferenceComparator
    extends java.lang.Object
    implements java.util.Comparator<Reference>
    Property value based virtual nodes 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.
    Author:
    Silviu Dinuta
    • Constructor Summary

      Constructors 
      Constructor Description
      ReferenceComparator​(VirtualStore smartStore, java.util.List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,​java.lang.Boolean>> sortProps)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(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,
                                   java.util.List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,​java.lang.Boolean>> sortProps)
    • Method Detail