public class TMEventComparator extends java.lang.Object implements CQComparator
Constructor and Description |
---|
TMEventComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object object1,
java.lang.Object object2)
Compare the two argument for order.
|
long |
getVirtualBinNumber(java.lang.Object event)
Given an event, return the virtual index of
the bin that should contain the event.
|
void |
setBinWidth(java.lang.Object[] entryArray)
Do nothing.
|
void |
setZeroReference(java.lang.Object zeroReference)
Do nothing.
|
public final int compare(java.lang.Object object1, java.lang.Object object2)
compare
in interface java.util.Comparator
object1
- The first event.object2
- The second event.java.lang.ClassCastException
- If one of the arguments is not
an instance of TMEvent.public final long getVirtualBinNumber(java.lang.Object event)
getVirtualBinNumber
in interface CQComparator
event
- The event.public void setBinWidth(java.lang.Object[] entryArray)
setBinWidth
in interface CQComparator
entryArray
- An array of TMEvent objects.public void setZeroReference(java.lang.Object zeroReference)
setZeroReference
in interface CQComparator
zeroReference
- The zero reference of the comparator.