com.raelity.jvi
Class AbbrevLookup.CommandElement

java.lang.Object
  extended by 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.


Method Summary
 int compareTo(AbbrevLookup.CommandElement o1)
           
 boolean equals(Object o1)
           
 String getAbbrev()
           
 String getName()
           
 Object getValue()
           
 boolean match(String tryName)
          Check if the argument can invoke this command.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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