Package org.apache.storm.utils
Class ObjectReader
- java.lang.Object
-
- org.apache.storm.utils.ObjectReader
-
public class ObjectReader extends Object
-
-
Constructor Summary
Constructors Constructor Description ObjectReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
getBoolean(Object o, boolean defaultValue)
static Double
getDouble(Object o)
static Double
getDouble(Object o, Double defaultValue)
static Integer
getInt(Object o)
static Integer
getInt(Object o, Integer defaultValue)
static Long
getLong(Object o)
static Long
getLong(Object o, Long defaultValue)
static String
getString(Object o)
static String
getString(Object o, String defaultValue)
static List<String>
getStrings(Object o)
Convert the input into a list of string; ignore null members.
-