Interface NoopMarshaller<T>

All Superinterfaces:
Marshaller<T,Object>

public interface NoopMarshaller<T> extends Marshaller<T,Object>
Noop marshaller that does not perform any transformation on the object.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> NoopMarshaller<T>
     
    default @Nullable Object
    marshal(T object)
    Marshal the object into raw type.
    default T
    unmarshal(@Nullable Object object)
    Unmarshal the raw type into object.
  • Method Details

    • create

      static <T> NoopMarshaller<T> create()
    • marshal

      @Nullable default @Nullable Object marshal(@Nullable T object)
      Description copied from interface: Marshaller
      Marshal the object into raw type.
      Specified by:
      marshal in interface Marshaller<T,Object>
      Parameters:
      object - object to marshal.
      Returns:
      raw presentation of object.
    • unmarshal

      @Nullable default T unmarshal(@Nullable @Nullable Object object)
      Description copied from interface: Marshaller
      Unmarshal the raw type into object.
      Specified by:
      unmarshal in interface Marshaller<T,Object>
      Parameters:
      object - raw presentation of object.
      Returns:
      object.