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.Mapper
Converts the given endpoint value to the transfer type.- Specified by:
toTransferType
in 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.Mapper
Converts the given transfer value to the endpoint type.- Specified by:
toEndpointType
in 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.Mapper
Returns the type used in the endpoint.- Specified by:
getEndpointType
in interfaceEndpointTransferMapper.Mapper<UUID,
String> - Returns:
- the endpoint type
-
getTransferType
Description copied from interface:EndpointTransferMapper.Mapper
Returns the type used when transfering data to/from the client.- Specified by:
getTransferType
in interfaceEndpointTransferMapper.Mapper<UUID,
String> - Returns:
- the transfer type
-