Interface PropertiesConverter<T>

  • Type Parameters:
    T - target type.

    public interface PropertiesConverter<T>
    convert a Map value to T. Primary use is to pass the all properties of the current object to the converter.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @Nullable T convert​(java.util.Map<java.lang.String,​java.lang.Object> value, java.lang.String location)
      converts the map value to a T object or null.
    • Method Detail

      • convert

        @Nullable T convert​(java.util.Map<java.lang.String,​java.lang.Object> value,
                            java.lang.String location)
        converts the map value to a T object or null. May throw if conversion fails.
        Parameters:
        value - property value
        location - property location, json pointer
        Returns:
        T converted value