Package com.helger.html.js.tostring
Class JsonToStringConverter
- java.lang.Object
-
- com.helger.html.js.tostring.JsonToStringConverter
-
- All Implemented Interfaces:
IJSToStringConverter,Serializable
@Immutable public final class JsonToStringConverter extends Object implements IJSToStringConverter, Serializable
Implementation of theIJSToStringConverterinterface, for converting nativeIJsonobjects.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonToStringConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()StringobjectToJSString(Object aObject, JSType aType)Convert an arbitrary JS object to a string.StringtoString()
-
-
-
Method Detail
-
objectToJSString
@Nullable public String objectToJSString(@Nullable Object aObject, @Nonnull JSType aType)
Description copied from interface:IJSToStringConverterConvert an arbitrary JS object to a string.- Specified by:
objectToJSStringin interfaceIJSToStringConverter- Parameters:
aObject- The object to be converted. May benull.aType- The JS type to use. May not benull.- Returns:
nullif the passed object isnull.
-
-