Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.utils
Class PrimitiveUtils

java.lang.Object
  extended by org.jboss.arquillian.ajocado.utils.PrimitiveUtils

public final class PrimitiveUtils
extends Object

The static methods desired to simplify conversion of primitive types.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
static Boolean asBoolean(String string)
          Converts string to boolean
static Double asDouble(String string)
          Converts string to double
static Float asFloat(String string)
          Converts string to float
static Integer asInteger(String string)
          Converts string to integer
static Long asLong(String string)
          Converts string to long
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asBoolean

public static Boolean asBoolean(String string)
Converts string to boolean

Parameters:
string - to convert
Returns:
the boolean value of string

asLong

public static Long asLong(String string)
Converts string to long

Parameters:
string - to convert
Returns:
the long value of string

asInteger

public static Integer asInteger(String string)
Converts string to integer

Parameters:
string - to convert
Returns:
the integer value of string

asDouble

public static Double asDouble(String string)
Converts string to double

Parameters:
string - to convert
Returns:
the double value of string

asFloat

public static Float asFloat(String string)
Converts string to float

Parameters:
string - to convert
Returns:
the float value of string

Graphene Implementation 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.