Class UUIDMapper
java.lang.Object
com.vaadin.hilla.endpointransfermapper.UUIDMapper
- All Implemented Interfaces:
EndpointTransferMapper.Mapper<UUID,String>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the type used in the endpoint.Returns the type used when transfering data to/from the client.toEndpointType(String string) Converts the given transfer value to the endpoint type.toTransferType(UUID uuid) Converts the given endpoint value to the transfer type.
-
Constructor Details
-
UUIDMapper
public UUIDMapper()
-
-
Method Details
-
toTransferType
Description copied from interface:EndpointTransferMapper.MapperConverts the given endpoint value to the transfer type.- Specified by:
toTransferTypein interfaceEndpointTransferMapper.Mapper<UUID,String> - Parameters:
uuid- the value used in the endpoint- Returns:
- the value used in communication with the client
-
toEndpointType
Description copied from interface:EndpointTransferMapper.MapperConverts the given transfer value to the endpoint type.- Specified by:
toEndpointTypein interfaceEndpointTransferMapper.Mapper<UUID,String> - Parameters:
string- the value used in communication with the client- Returns:
- the value used in the endpoint
-
getEndpointType
Description copied from interface:EndpointTransferMapper.MapperReturns the type used in the endpoint.- Specified by:
getEndpointTypein interfaceEndpointTransferMapper.Mapper<UUID,String> - Returns:
- the endpoint type
-
getTransferType
Description copied from interface:EndpointTransferMapper.MapperReturns the type used when transfering data to/from the client.- Specified by:
getTransferTypein interfaceEndpointTransferMapper.Mapper<UUID,String> - Returns:
- the transfer type
-