Class PageableMapper
java.lang.Object
com.vaadin.hilla.endpointransfermapper.PageableMapper
- All Implemented Interfaces:
EndpointTransferMapper.Mapper<org.springframework.data.domain.Pageable,com.vaadin.hilla.mappedtypes.Pageable>
public class PageableMapper
extends Object
implements EndpointTransferMapper.Mapper<org.springframework.data.domain.Pageable,com.vaadin.hilla.mappedtypes.Pageable>
A mapper between
Pageable and Pageable.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends org.springframework.data.domain.Pageable> Returns the type used in the endpoint.Class<? extends com.vaadin.hilla.mappedtypes.Pageable> Returns the type used when transfering data to/from the client.org.springframework.data.domain.PageabletoEndpointType(com.vaadin.hilla.mappedtypes.Pageable transferPageable) Converts the given transfer value to the endpoint type.com.vaadin.hilla.mappedtypes.PageabletoTransferType(org.springframework.data.domain.Pageable pageable) Converts the given endpoint value to the transfer type.
-
Constructor Details
-
PageableMapper
public PageableMapper()
-
-
Method Details
-
getEndpointType
Description copied from interface:EndpointTransferMapper.MapperReturns the type used in the endpoint.- Specified by:
getEndpointTypein interfaceEndpointTransferMapper.Mapper<org.springframework.data.domain.Pageable,com.vaadin.hilla.mappedtypes.Pageable> - Returns:
- the endpoint type
-
getTransferType
Description copied from interface:EndpointTransferMapper.MapperReturns the type used when transfering data to/from the client.- Specified by:
getTransferTypein interfaceEndpointTransferMapper.Mapper<org.springframework.data.domain.Pageable,com.vaadin.hilla.mappedtypes.Pageable> - Returns:
- the transfer type
-
toTransferType
public com.vaadin.hilla.mappedtypes.Pageable toTransferType(org.springframework.data.domain.Pageable pageable) Description copied from interface:EndpointTransferMapper.MapperConverts the given endpoint value to the transfer type.- Specified by:
toTransferTypein interfaceEndpointTransferMapper.Mapper<org.springframework.data.domain.Pageable,com.vaadin.hilla.mappedtypes.Pageable> - Parameters:
pageable- the value used in the endpoint- Returns:
- the value used in communication with the client
-
toEndpointType
public org.springframework.data.domain.Pageable toEndpointType(com.vaadin.hilla.mappedtypes.Pageable transferPageable) Description copied from interface:EndpointTransferMapper.MapperConverts the given transfer value to the endpoint type.- Specified by:
toEndpointTypein interfaceEndpointTransferMapper.Mapper<org.springframework.data.domain.Pageable,com.vaadin.hilla.mappedtypes.Pageable> - Parameters:
transferPageable- the value used in communication with the client- Returns:
- the value used in the endpoint
-