com.vaadin.hilla.endpointransfermapper.
Interface EndpointTransferMapper.Mapper<ENDPOINTTYPE,TRANSFERTYPE>
Type Parameters:
ENDPOINTTYPE
- The type used in endpoints
TRANSFERTYPE
- the type used in communication with the client
All Known Implementing Classes:
Enclosing class:
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 endpointReturns:
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 clientReturns:
the value used in the endpoint
-