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>>
AComparator
implementation used to compareMessageProcessor
instances.
-
-
Constructor Summary
Constructors Constructor Description MessageProcessorComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(MessageProcessor<T> processor1, MessageProcessor<T> processor2)
Compares its two arguments for order.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
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 interfaceComparator<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
- Theprocessor1
is a null reference orprocessor2
is a null reference.ClassCastException
- if the arguments' types prevent them from being compared by this comparator.
-
-