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)
Variant of
toEntity(Class) to decode to a list of entities. |
<D> List<D> |
toEntityList(ParameterizedTypeReference<D> elementType)
Variant of
toEntity(Class) to decode to a list of entities. |
getError, getErrors, getParsedPath, getPath, getValue, hasValue<D> D toEntity(Class<D> entityType)
entityType - the type to convert tonullFieldAccessException - if the target field is null and has
errors.<D> D toEntity(ParameterizedTypeReference<D> entityType)
toEntity(Class) with a ParameterizedTypeReference.<D> List<D> toEntityList(Class<D> elementType)
toEntity(Class) to decode to a list of entities.elementType - the type of elements in the list<D> List<D> toEntityList(ParameterizedTypeReference<D> elementType)
toEntity(Class) to decode to a list of entities.elementType - the type of elements in the list