|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Term
This interface provides the methods path Term objects must implement.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object term)
Term objects may be used in hashes and should provide an efficient equals method. |
java.lang.Integer |
getIndex()
Method to extract the Integer index for this Term. |
java.lang.String |
getKey()
Method to extract the String key for this Term. |
int |
hashCode()
Term objects may be used in nlists. |
boolean |
isKey()
A utility function to determine if this Term is a key (String value). |
java.lang.String |
toString()
This method must return a String representation of the Term object. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
boolean isKey()
java.lang.Integer getIndex()
throws InvalidTermException
InvalidTermException - thrown if the term is not an index; message should contain
the string value of the term that was used
java.lang.String 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()
hashCode in class java.lang.Objectboolean equals(java.lang.Object term)
equals in class java.lang.Objectjava.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||