Interface EndpointTransferMapper.Mapper<ENDPOINTTYPE,TRANSFERTYPE>
- Type Parameters:
ENDPOINTTYPE
- The type used in endpointsTRANSFERTYPE
- the type used in communication with the client
- All Known Implementing Classes:
PageableMapper
,PageMapper
,SortMapper
,UUIDMapper
- Enclosing class:
- EndpointTransferMapper
public static interface EndpointTransferMapper.Mapper<ENDPOINTTYPE,TRANSFERTYPE>
A mapper for endpoint values that is capable of converting between the
given endpoint and transfer type.
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends ENDPOINTTYPE>
Returns the type used in the endpoint.Class<? extends TRANSFERTYPE>
Returns the type used when transfering data to/from the client.toEndpointType
(TRANSFERTYPE transferType) Converts the given transfer value to the endpoint type.toTransferType
(ENDPOINTTYPE endpointType) Converts the given endpoint value to the transfer type.
-
Method Details
-
getEndpointType
Class<? extends ENDPOINTTYPE> getEndpointType()Returns the type used in the endpoint.- Returns:
- the endpoint type
-
getTransferType
Class<? extends TRANSFERTYPE> getTransferType()Returns the type used when transfering data to/from the client.- Returns:
- the transfer type
-
toTransferType
Converts the given endpoint value to the transfer type.- Parameters:
endpointType
- the value used in the endpoint- Returns:
- the value used in communication with the client
-
toEndpointType
Converts the given transfer value to the endpoint type.- Parameters:
transferType
- the value used in communication with the client- Returns:
- the value used in the endpoint
-