com.vaadin.fusion.endpointransfermapper.
Class PageableMapper
- java.lang.Object
-
- com.vaadin.fusion.endpointransfermapper.PageableMapper
-
All Implemented Interfaces:
EndpointTransferMapper.Mapper<org.springframework.data.domain.Pageable,Pageable>
public class PageableMapper extends Object implements EndpointTransferMapper.Mapper<org.springframework.data.domain.Pageable,Pageable>
-
-
Constructor Summary
Constructors Constructor and Description PageableMapper()
-
Method Summary
All Methods Modifier and Type Method and Description Class<? extends org.springframework.data.domain.Pageable>
getEndpointType()
Returns the type used in the endpoint.
Class<? extends Pageable>
getTransferType()
Returns the type used when transfering data to/from the client.
org.springframework.data.domain.Pageable
toEndpointType(Pageable transferPageable)
Converts the given transfer value to the endpoint type.
Pageable
toTransferType(org.springframework.data.domain.Pageable pageable)
Converts the given endpoint value to the transfer type.
-
-
-
Method Detail
-
getEndpointType
public Class<? extends org.springframework.data.domain.Pageable> getEndpointType()
Description copied from interface:
EndpointTransferMapper.Mapper
Returns the type used in the endpoint.
Specified by:
getEndpointType
in interfaceEndpointTransferMapper.Mapper<org.springframework.data.domain.Pageable,Pageable>
Returns:
the endpoint type
-
getTransferType
public Class<? extends Pageable> 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.Pageable,Pageable>
Returns:
the transfer type
-
toTransferType
public Pageable toTransferType(org.springframework.data.domain.Pageable pageable)
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.Pageable,Pageable>
Parameters:
pageable
- the value used in the endpointReturns:
the value used in communication with the client
-
toEndpointType
public org.springframework.data.domain.Pageable toEndpointType(Pageable transferPageable)
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.Pageable,Pageable>
Parameters:
transferPageable
- the value used in communication with the clientReturns:
the value used in the endpoint
-
-