com.vaadin.fusion.endpointransfermapper.
Interface EndpointTransferMapper.Mapper<ENDPOINTTYPE,TRANSFERTYPE>
-
Type Parameters:
ENDPOINTTYPE
- The type used in endpointsTRANSFERTYPE
- the type used in communication with the clientAll Known Implementing Classes:
Enclosing class:
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
All Methods Modifier and Type Method and Description Class<? extends ENDPOINTTYPE>
getEndpointType()
Returns the type used in the endpoint.
Class<? extends TRANSFERTYPE>
getTransferType()
Returns the type used when transfering data to/from the client.
ENDPOINTTYPE
toEndpointType(TRANSFERTYPE transferType)
Converts the given transfer value to the endpoint type.
TRANSFERTYPE
toTransferType(ENDPOINTTYPE endpointType)
Converts the given endpoint value to the transfer type.
-
-
-
Method Detail
-
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
TRANSFERTYPE toTransferType(ENDPOINTTYPE endpointType)
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
ENDPOINTTYPE toEndpointType(TRANSFERTYPE transferType)
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
-
-