Class EHistoricSubscribeFeed.PastComparator

    • Constructor Detail

      • PastComparator

        public PastComparator()
    • Method Detail

      • compare

        public int compare​(ENotificationMessage o1,
                           ENotificationMessage o2)
        Compares two eBus notification messages for order. Returns an integer values <, equal to, or > zero if the first argument is <, equal to, or > the second argument. Comparison is based on the following notification properties:
        1. message timestamp,
        2. publisher identifier, and
        3. message position.
        Publisher identifiers are compared only if timestamps are equal. Message positions are compared only if timestamps and publisher identifiers are equal.
        Specified by:
        compare in interface Comparator<ENotificationMessage>
        Parameters:
        o1 - first notification message to be compared.
        o2 - second notification message to be compared.
        Returns:
        an integer value <, equal to, or > zero if first argument is <, equal to, or > second argument.