public interface Term extends Comparable<Term>
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object term)
Term objects may be used in hashes and should provide an efficient equals
method.
|
Integer |
getIndex()
Method to extract the Integer index for this Term.
|
String |
getKey()
Method to extract the String key for this Term.
|
int |
hashCode()
Term objects may be used in dicts.
|
boolean |
isKey()
A utility function to determine if this Term is a key (String value).
|
String |
toString()
This method must return a String representation of the Term object.
|
compareToboolean isKey()
Integer getIndex() throws InvalidTermException
InvalidTermException - thrown if the term is not an index; message should contain
the string value of the term that was usedString getKey() throws InvalidTermException
InvalidTermException - thrown if the term is not a key; message should contain the
string value of the term that was usedint hashCode()
boolean equals(Object term)
Copyright © 2014 Quattor. All Rights Reserved.