Class ChronologicalComparator

    • Constructor Detail

      • ChronologicalComparator

        public ChronologicalComparator()
        Simple constructor.
    • Method Detail

      • compare

        public int compare​(TimeStamped timeStamped1,
                           TimeStamped timeStamped2)
        Compare two time-stamped instances.
        Specified by:
        compare in interface Comparator<TimeStamped>
        Parameters:
        timeStamped1 - first time-stamped instance
        timeStamped2 - second time-stamped instance
        Returns:
        a negative integer, zero, or a positive integer as the first instance is before, simultaneous, or after the second one.