![JAR search and dependency download from the Maven repository](/logo.png)
gov.nih.nlm.nls.lvg.Util.Vec 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.Util;
import java.util.*;
/*****************************************************************************
* This class represents Vector related methods.
*
* History:
*
* @author NLM NLS Development Team
*
* @version V-2010
****************************************************************************/
public class Vec
{
// public methods
/*
* Transfer from Vector to an array of longs.
*
* @param inList Vector
*
* @return an array of longs
*/
public static long[] ToArray(Vector inList)
{
int size = inList.size();
long[] outs = new long[size];
for(int i = 0; i < size; i++)
{
outs[i] = (inList.elementAt(i)).longValue();
}
return outs;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy