Class UuidComparator

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        The serial version UID
        See Also:
        Constant Field Values
      • LOG

        private static final org.slf4j.Logger LOG
        A logger for this class
      • INSTANCE

        public static final UuidComparator INSTANCE
        A static instance of the UuidComparator
    • Constructor Detail

      • UuidComparator

        public UuidComparator​(String oid)
        The UUIDComparator constructor. Its OID is the UUIDMatch matching rule OID.
        Parameters:
        oid - The Comparator's OID
    • Method Detail

      • compare

        public int compare​(UUID uuid1,
                           UUID uuid2)
        Compare two UUID.
        Parameters:
        uuid1 - The first UUID
        uuid2 - he second UUID
        Returns:
        -1 if the first UUID is lower than the second UUID, 1 if it's higher, 0 if they are equal