com.jayway.jsonpath.internal
Class ConvertUtils

java.lang.Object
  extended by com.jayway.jsonpath.internal.ConvertUtils

public class ConvertUtils
extends Object

Author:
Kalle Stenflo

Constructor Summary
ConvertUtils()
           
 
Method Summary
static Double toDouble(Object o)
          converts to Double with radix 10
static Integer toInt(Object o)
          converts to Integer with radix 10
static Long toLong(Object o)
          converts to Long with radix 10
static String toString(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertUtils

public ConvertUtils()
Method Detail

toInt

public static Integer toInt(Object o)
converts to Integer with radix 10

Parameters:
o - object to convert
Returns:
converted value

toLong

public static Long toLong(Object o)
converts to Long with radix 10

Parameters:
o - object to convert
Returns:
converted value

toDouble

public static Double toDouble(Object o)
converts to Double with radix 10

Parameters:
o - object to convert
Returns:
converted value

toString

public static String toString(Object o)


Copyright © 2011-2012. All Rights Reserved.