public class UUIDMapper extends Object implements EndpointTransferMapper.Mapper<UUID,String>
| Constructor and Description |
|---|
UUIDMapper() |
| 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.
|
public String toTransferType(UUID uuid)
EndpointTransferMapper.MappertoTransferType in interface EndpointTransferMapper.Mapper<UUID,String>uuid - the value used in the endpointpublic UUID toEndpointType(String string)
EndpointTransferMapper.MappertoEndpointType in interface EndpointTransferMapper.Mapper<UUID,String>string - the value used in communication with the clientpublic Class<? extends UUID> getEndpointType()
EndpointTransferMapper.MappergetEndpointType in interface EndpointTransferMapper.Mapper<UUID,String>public Class<? extends String> getTransferType()
EndpointTransferMapper.MappergetTransferType in interface EndpointTransferMapper.Mapper<UUID,String>Copyright © 2000–2022 Vaadin Ltd. All rights reserved.