com.vaadin.hilla.endpointransfermapper.
Class PageMapper
All Implemented Interfaces:
EndpointTransferMapper.Mapper<org.springframework.data.domain.Page<?>,
A mapper between Page
and List
.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends org.springframework.data.domain.Page<?>>
Returns the type used in the endpoint.
Returns the type used when transfering data to/from the client.
org.springframework.data.domain.Page<?>
toEndpointType
(List<?> list) Converts the given transfer value to the endpoint type.
List<?>
toTransferType
(org.springframework.data.domain.Page<?> page) Converts the given endpoint value to the transfer type.
-
Constructor Details
-
PageMapper
public PageMapper()
-
-
Method Details
-
getEndpointType
Description copied from interface:
EndpointTransferMapper.Mapper
Returns the type used in the endpoint.
Specified by:
getEndpointType
in interfaceEndpointTransferMapper.Mapper<org.springframework.data.domain.Page<?>,
List<?>> 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<org.springframework.data.domain.Page<?>,
List<?>> Returns:
the transfer type
-
toTransferType
Description copied from interface:
EndpointTransferMapper.Mapper
Converts the given endpoint value to the transfer type.
Specified by:
toTransferType
in interfaceEndpointTransferMapper.Mapper<org.springframework.data.domain.Page<?>,
List<?>> Parameters:
page
- the value used in the endpointReturns:
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<org.springframework.data.domain.Page<?>,
List<?>> Parameters:
list
- the value used in communication with the clientReturns:
the value used in the endpoint
-