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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintcompare(MessageProcessor<T> processor1, MessageProcessor<T> processor2) Compares its two arguments for order.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Constructor Details- 
MessageProcessorComparatorpublic MessageProcessorComparator()
 
- 
- 
Method Details- 
compareCompares 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 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- processor1is a null reference or- processor2is a null reference.
- ClassCastException- if the arguments' types prevent them from being compared by this comparator.
 
 
-