Package org.apache.activemq.openwire
Class CommandIdComparator
- java.lang.Object
-
- org.apache.activemq.openwire.CommandIdComparator
-
- All Implemented Interfaces:
Comparator<Command>
public class CommandIdComparator extends Object implements Comparator<Command>
A @{link Comparator} of commands using theirCommand.getCommandId()
-
-
Constructor Summary
Constructors Constructor Description CommandIdComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Command c1, Command c2)
-
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(Command c1, Command c2)
- Specified by:
compare
in interfaceComparator<Command>
-
-