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.Mapper
toTransferType
in interface EndpointTransferMapper.Mapper<UUID,String>
uuid
- the value used in the endpointpublic UUID toEndpointType(String string)
EndpointTransferMapper.Mapper
toEndpointType
in interface EndpointTransferMapper.Mapper<UUID,String>
string
- the value used in communication with the clientpublic Class<? extends UUID> getEndpointType()
EndpointTransferMapper.Mapper
getEndpointType
in interface EndpointTransferMapper.Mapper<UUID,String>
public Class<? extends String> getTransferType()
EndpointTransferMapper.Mapper
getTransferType
in interface EndpointTransferMapper.Mapper<UUID,String>
Copyright © 2024. All rights reserved.