Interface PropertyConverter<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default @Nullable T convert​(java.lang.String name, @Nullable java.lang.Object value, JsonPointer location)  
      @Nullable T convert​(java.lang.String name, @Nullable java.lang.Object value, java.lang.String location)
      converts the value of a property to a T object or null.
    • Method Detail

      • convert

        @Nullable T convert​(java.lang.String name,
                            @Nullable java.lang.Object value,
                            java.lang.String location)
        converts the value of a property to a T object or null. May throw if conversion fails, e.g. if the property is required but null.
        Parameters:
        name - property name
        value - property value
        location - property location, json pointer
        Returns:
        T converted value
      • convert

        default @Nullable T convert​(java.lang.String name,
                                    @Nullable java.lang.Object value,
                                    JsonPointer location)