com.raelity.jvi
Class AbbrevLookup.CommandElement
java.lang.Object
com.raelity.jvi.AbbrevLookup.CommandElement
- All Implemented Interfaces:
- Comparable<AbbrevLookup.CommandElement>
- Enclosing class:
- AbbrevLookup
public static class AbbrevLookup.CommandElement
- extends Object
- implements Comparable<AbbrevLookup.CommandElement>
A registered command is represented by this class.
Comparison and equality is based on the command abbreviation.
getAbbrev
public String getAbbrev()
- Returns:
- the abbreviation for the command
getName
public String getName()
- Returns:
- the full command name
getValue
public Object getValue()
- Returns:
- the value.
match
public boolean match(String tryName)
- Check if the argument can invoke this command.
compareTo
public int compareTo(AbbrevLookup.CommandElement o1)
- Specified by:
compareTo
in interface Comparable<AbbrevLookup.CommandElement>
equals
public boolean equals(Object o1)
- Overrides:
equals
in class Object