|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.linkedin.restli.internal.common.ValueConverter
public class ValueConverter
| Constructor Summary | |
|---|---|
ValueConverter()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
coerceString(java.lang.String value,
java.lang.Class<?> clazz)
Attempt to coerce the given string into an object of the given class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueConverter()
| Method Detail |
|---|
public static java.lang.Object coerceString(java.lang.String value,
java.lang.Class<?> clazz)
value - the String value to coercer. could be nullclazz - the class to coercer the string into
valid values are string, short, int, long, float, double (and equivalent boxed types), ByteString or enum.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||