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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(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, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MessageProcessorComparator
public MessageProcessorComparator()
-
-
Method Details
-
compare
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:
comparein 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- Theprocessor1is a null reference orprocessor2is a null reference.ClassCastException- if the arguments' types prevent them from being compared by this comparator.
-