All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.nih.nlm.nls.lvg.Db.InflectionVector Maven / Gradle / Ivy

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