org.jagatoo.commands
Class AlphabeticalCommandsKeyComparator

java.lang.Object
  extended by org.jagatoo.commands.AlphabeticalCommandsKeyComparator
All Implemented Interfaces:
java.util.Comparator<Command>

public class AlphabeticalCommandsKeyComparator
extends java.lang.Object
implements java.util.Comparator<Command>

This is a Comparator, that sorts Commands alphabetically by their keys.


Constructor Summary
protected AlphabeticalCommandsKeyComparator()
           
 
Method Summary
 int compare(Command cmd1, Command cmd2)
          
static AlphabeticalCommandsKeyComparator getInstance()
           
 
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

AlphabeticalCommandsKeyComparator

protected AlphabeticalCommandsKeyComparator()
Method Detail

getInstance

public static final AlphabeticalCommandsKeyComparator getInstance()

compare

public int compare(Command cmd1,
                   Command cmd2)

Specified by:
compare in interface java.util.Comparator<Command>