Package dev.hilla.endpointransfermapper
Class UUIDMapper
- java.lang.Object
-
- dev.hilla.endpointransfermapper.UUIDMapper
-
- All Implemented Interfaces:
EndpointTransferMapper.Mapper<UUID,String>
public class UUIDMapper extends Object implements EndpointTransferMapper.Mapper<UUID,String>
-
-
Constructor Summary
Constructors Constructor Description UUIDMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.UUIDtoEndpointType(String string)Converts the given transfer value to the endpoint type.StringtoTransferType(UUID uuid)Converts the given endpoint value to the transfer type.
-
-
-
Method Detail
-
toTransferType
public String toTransferType(UUID uuid)
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
public UUID toEndpointType(String string)
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
public Class<? extends UUID> 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
public Class<? extends String> 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
-
-