Interface PropertiesConverter<T>
-
- Type Parameters:
T- target type.
public interface PropertiesConverter<T>convert aMapvalue toT. 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 Tconvert(java.util.Map<java.lang.String,java.lang.Object> value, java.lang.String location)converts the mapvalueto aTobject or null.
-
-
-
Method Detail
-
convert
@Nullable T convert(java.util.Map<java.lang.String,java.lang.Object> value, java.lang.String location)
converts the mapvalueto aTobject or null. May throw if conversion fails.- Parameters:
value- property valuelocation- property location, json pointer- Returns:
- T converted value
-
-