org.hisee.core
Class Utils

java.lang.Object
  |
  +--org.hisee.core.Utils

public class Utils
extends java.lang.Object

Utils contains static utility classes.


Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String doubleArrayToString(double[] data)
          Utility to class to convert arrays of doubles to strings.
static java.lang.String round(double num, int precision)
           
static double[] stringArrayToDoubleArray(java.lang.String[] line)
          Converts an array of strings containing doubles into an array of values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

stringArrayToDoubleArray

public static double[] stringArrayToDoubleArray(java.lang.String[] line)
Converts an array of strings containing doubles into an array of values

Parameters:
line - the array of strings
Returns:
the array of doubles

doubleArrayToString

public static java.lang.String doubleArrayToString(double[] data)
Utility to class to convert arrays of doubles to strings.

Parameters:
data - array of doubles
Returns:
string representation of that array

round

public static java.lang.String round(double num,
                                     int precision)
Parameters:
num - double to convert
precision - number of decimal places
Returns:
string representation of rounded decimal


for more information see hisee.sourceforge.net