Package org.jboss.netty.util.internal
Class ConversionUtil
- java.lang.Object
-
- org.jboss.netty.util.internal.ConversionUtil
-
public final class ConversionUtil extends java.lang.Object
Conversion utility class to parse a property represented as a string or an object.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.regex.Pattern
ARRAY_DELIM
private static java.lang.String[]
INTEGERS
-
Constructor Summary
Constructors Modifier Constructor Description private
ConversionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
toBoolean(java.lang.Object value)
Converts the specified object into a boolean.static int
toInt(java.lang.Object value)
Converts the specified object into an integer.static java.lang.String
toString(int value)
static java.lang.String[]
toStringArray(java.lang.Object value)
Converts the specified object into an array of strings.
-
-
-
Method Detail
-
toInt
public static int toInt(java.lang.Object value)
Converts the specified object into an integer.
-
toBoolean
public static boolean toBoolean(java.lang.Object value)
Converts the specified object into a boolean.
-
toStringArray
public static java.lang.String[] toStringArray(java.lang.Object value)
Converts the specified object into an array of strings.
-
toString
public static java.lang.String toString(int value)
-
-