Class MessageProcessorComparator<T extends LiveScoutEntityBase>

    • Constructor Detail

      • MessageProcessorComparator

        public MessageProcessorComparator()
    • Method Detail

      • compare

        public int compare​(MessageProcessor<T> processor1,
                           MessageProcessor<T> processor2)
        Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

        Specified by:
        compare in interface Comparator<T extends LiveScoutEntityBase>
        Parameters:
        processor1 - the first object to be compared.
        processor2 - the second object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
        Throws:
        NullPointerException - The processor1 is a null reference or processor2 is a null reference.
        ClassCastException - if the arguments' types prevent them from being compared by this comparator.