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

gov.nih.nlm.nls.lvg.Util.Vec Maven / Gradle / Ivy

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