org.sonar.api.utils
Class ParsingUtils

java.lang.Object
  extended by org.sonar.api.utils.ParsingUtils

public final class ParsingUtils
extends Object

Since:
1.10

Method Summary
static double parseNumber(String number)
           
static double parseNumber(String number, Locale locale)
           
static double scaleValue(double value)
           
static double scaleValue(double value, int decimals)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseNumber

public static double parseNumber(String number,
                                 Locale locale)
                          throws ParseException
Throws:
ParseException

parseNumber

public static double parseNumber(String number)
                          throws ParseException
Throws:
ParseException

scaleValue

public static double scaleValue(double value)

scaleValue

public static double scaleValue(double value,
                                int decimals)


Copyright © 2009 SonarSource SA. All Rights Reserved.