asg.cliche
Class CommandNamer.NamingInfo
java.lang.Object
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.
Constructor Summary |
CommandNamer.NamingInfo(java.lang.String commandName,
java.lang.String[] possibleAbbreviations)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
commandName
public final java.lang.String commandName
possibleAbbreviations
public final java.lang.String[] possibleAbbreviations
CommandNamer.NamingInfo
public CommandNamer.NamingInfo(java.lang.String commandName,
java.lang.String[] possibleAbbreviations)
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