org.apache.activemq.openwire
Class CommandIdComparator

java.lang.Object
  extended by org.apache.activemq.openwire.CommandIdComparator
All Implemented Interfaces:
Comparator<Command>

public class CommandIdComparator
extends Object
implements Comparator<Command>

A @{link Comparator} of commands using their Command.getCommandId()


Constructor Summary
CommandIdComparator()
           
 
Method Summary
 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
 

Constructor Detail

CommandIdComparator

public CommandIdComparator()
Method Detail

compare

public int compare(Command c1,
                   Command c2)
Specified by:
compare in interface Comparator<Command>


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.