com.vaadin.fusion.endpointransfermapper.
Class UUIDMapper
- java.lang.Object
-
- com.vaadin.fusion.endpointransfermapper.UUIDMapper
-
All Implemented Interfaces:
public class UUIDMapper extends Object implements EndpointTransferMapper.Mapper<UUID,String>
-
-
Constructor Summary
Constructors Constructor and Description UUIDMapper()
-
Method Summary
All Methods Modifier and Type Method and Description Class<? extends UUID>
getEndpointType()
Returns the type used in the endpoint.
Class<? extends String>
getTransferType()
Returns the type used when transfering data to/from the client.
UUID
toEndpointType(String string)
Converts the given transfer value to the endpoint type.
String
toTransferType(UUID uuid)
Converts the given endpoint value to the transfer type.
-
-
-
Method Detail
-
toTransferType
public String toTransferType(UUID uuid)
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 endpointReturns:
the value used in communication with the client
-
toEndpointType
public UUID toEndpointType(String string)
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 clientReturns:
the value used in the endpoint
-
getEndpointType
public Class<? extends UUID> 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
public Class<? extends String> 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
-
-