Lvg Java
2006p Version

gov.nih.nlm.nls.lvg.Lib
Class TermCatKey

java.lang.Object
  extended by gov.nih.nlm.nls.lvg.Lib.TermCatKey

public class TermCatKey
extends java.lang.Object

This class provides key for derivational LexItem used in recursively derivational flow. This overrides the hashcode() and equals() for using hashtable and hashSet.

History:

Version:
V-2006p
Author:
NLM NLS Development Team

Constructor Summary
TermCatKey(java.lang.String term, int category)
          Create a key object, using a specified term and category
 
Method Summary
 boolean equals(java.lang.Object anObject)
           
 int GetCategory()
          Get the category value of this object
 java.lang.String GetTerm()
          Get the term of this object
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermCatKey

public TermCatKey(java.lang.String term,
                  int category)
Create a key object, using a specified term and category

Method Detail

GetTerm

public java.lang.String GetTerm()
Get the term of this object

Returns:
term in String format

GetCategory

public int GetCategory()
Get the category value of this object

Returns:
category value

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object anObject)
Overrides:
equals in class java.lang.Object

Lvg Java
2006p Version

Submit a bug or feature

Copyright © 2006p National Library of Medicine