public class Alias extends Object implements Comparable
mycommand" command to the com.yourdomain.yourpackage.YourClass
class. Obviously, it's a lot easier to type "ng mycommand" than the fully
qualified class name.| Constructor and Description |
|---|
Alias(String name,
String description,
Class clazz)
Creates a new Alias with the specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares Alias names - no other fields are compared.
|
boolean |
equals(Object o)
Checks whether two Aliases have the same name.
|
Class |
getAliasedClass()
Returns the
Class object providing a static main() or nailMain() method
for this command. |
String |
getDescription()
Returns a description for the aliased command
|
String |
getName()
Returns the name of the aliased command
|
int |
hashCode() |
public Class getAliasedClass()
Class object providing a static main() or nailMain() method
for this command.Class object providing a static main() or nailMain() method
for this command.public String getName()
public String getDescription()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object o)
public int compareTo(Object o)
compareTo in interface ComparableComparable.compareTo(Object)Copyright © 2017. All rights reserved.