public interface ClientResponseField extends ResponseField
ResponseField
to add options for decoding the field value.Modifier and Type | Method and Description |
---|---|
<D> D |
toEntity(Class<D> entityType)
Decode the field to an entity of the given type.
|
<D> D |
toEntity(ParameterizedTypeReference<D> entityType)
Variant of
toEntity(Class) with a ParameterizedTypeReference . |
<D> List<D> |
toEntityList(Class<D> elementType)
Decode the field to a list of entities with the given type.
|
<D> List<D> |
toEntityList(ParameterizedTypeReference<D> elementType)
Variant of
toEntityList(Class) with ParameterizedTypeReference . |
getError, getErrors, getParsedPath, getPath, getValue, hasValue
<D> D toEntity(Class<D> entityType)
entityType
- the type to convert tonull
FieldAccessException
- if the target field is not present or
has no value, checked via ResponseField.hasValue()
.<D> D toEntity(ParameterizedTypeReference<D> entityType)
toEntity(Class)
with a ParameterizedTypeReference
.<D> List<D> toEntityList(Class<D> elementType)
elementType
- the type of elements in the listFieldAccessException
- if the target field is not present or
has no value, checked via ResponseField.hasValue()
.<D> List<D> toEntityList(ParameterizedTypeReference<D> elementType)
toEntityList(Class)
with ParameterizedTypeReference
.