Class MessageProcessorComparator<T extends LiveScoutEntityBase>

java.lang.Object
com.sportradar.livedata.sdk.feed.common.MessageProcessorComparator<T>
All Implemented Interfaces:
Comparator<MessageProcessor<T>>

public class MessageProcessorComparator<T extends LiveScoutEntityBase> extends Object implements Comparator<MessageProcessor<T>>
A Comparator implementation used to compare MessageProcessor instances.
  • Constructor Details

    • MessageProcessorComparator

      public MessageProcessorComparator()
  • Method Details

    • 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.