![JAR search and dependency download from the Maven repository](/logo.png)
gov.nih.nlm.nls.lvg.Db.InflectionVector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lvg2010dist Show documentation
Show all versions of lvg2010dist Show documentation
LVG tools is used by Apache cTAKES.
The newest version!
package gov.nih.nlm.nls.lvg.Db;
import java.util.*;
/*****************************************************************************
* This class provides a special Collection Vector
* for inflection records.
*
* History:
*
*
*
* @author NLM NLS Development Team
*
* @see InflectionRecord
* @see
*
* Desgin Document
*
* @version V-2010
****************************************************************************/
public class InflectionVector extends Vector
{
// public methods
/**
* Check if this collection Vector contains a specified EUI
*
* @param eui an EUI in a String format
*
* @return true or false if this collection vector does or does not
* contain the specified EUI
*/
public boolean ContainEui(String eui)
{
boolean hasEui = false;
for(int i = 0; i < size(); i++)
{
InflectionRecord inflectionRecord = (InflectionRecord) elementAt(i);
if(inflectionRecord.GetEui().equals(eui) == true)
{
hasEui = true;
break;
}
}
return hasEui;
}
private final static long serialVersionUID = 5L;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy