Interface IJSToStringConverter

  • All Known Implementing Classes:
    JsonToStringConverter, JSToStringConverter

    @MustImplementEqualsAndHashcode
    public interface IJSToStringConverter
    Interface that defines the conversion routines to convert an arbitrary Java object to a valid JavaScript object.
    Author:
    Philip Helger
    • Method Detail

      • objectToJSString

        @Nullable
        String objectToJSString​(@Nullable
                                Object aObject,
                                @Nonnull
                                JSType aType)
        Convert an arbitrary JS object to a string.
        Parameters:
        aObject - The object to be converted. May be null.
        aType - The JS type to use. May not be null.
        Returns:
        null if the passed object is null.