org.jboss.netty.util.internal
Class ConversionUtil

java.lang.Object
  extended by org.jboss.netty.util.internal.ConversionUtil

public class ConversionUtil
extends Object

Conversion utility class to parse a property represented as a string or an object.

Version:
$Rev: 2080 $, $Date: 2010-01-26 18:04:19 +0900 (Tue, 26 Jan 2010) $
Author:
The Netty Project, Trustin Lee

Method Summary
static boolean toBoolean(Object value)
          Converts the specified object into a boolean.
static int toInt(Object value)
          Converts the specified object into an integer.
static String toString(int value)
           
static String[] toStringArray(Object value)
          Converts the specified object into an array of strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toInt

public static int toInt(Object value)
Converts the specified object into an integer.


toBoolean

public static boolean toBoolean(Object value)
Converts the specified object into a boolean.


toStringArray

public static String[] toStringArray(Object value)
Converts the specified object into an array of strings.


toString

public static String toString(int value)


Copyright © 2008-2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.