asg.cliche
Class CommandNamer.NamingInfo

java.lang.Object
  extended by asg.cliche.CommandNamer.NamingInfo
Enclosing interface:
CommandNamer

public static class CommandNamer.NamingInfo
extends java.lang.Object

Return value grouping structure for nameCommand(). I decided to return name and abbreviations together because in the default algorithm they are generated simultaneously, and I think this approach is better than having a stateful strategy.


Field Summary
 java.lang.String commandName
           
 java.lang.String[] possibleAbbreviations
           
 
Constructor Summary
CommandNamer.NamingInfo(java.lang.String commandName, java.lang.String[] possibleAbbreviations)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

commandName

public final java.lang.String commandName

possibleAbbreviations

public final java.lang.String[] possibleAbbreviations
Constructor Detail

CommandNamer.NamingInfo

public CommandNamer.NamingInfo(java.lang.String commandName,
                               java.lang.String[] possibleAbbreviations)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object