Class SortMapper
java.lang.Object
com.vaadin.hilla.endpointransfermapper.SortMapper
- All Implemented Interfaces:
EndpointTransferMapper.Mapper<org.springframework.data.domain.Sort,Sort>
public class SortMapper
extends Object
implements EndpointTransferMapper.Mapper<org.springframework.data.domain.Sort,Sort>
A mapper between
Sort and
Sort.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends org.springframework.data.domain.Sort>Returns the type used in the endpoint.Returns the type used when transfering data to/from the client.org.springframework.data.domain.SorttoEndpointType(Sort transferSort) Converts the given transfer value to the endpoint type.toTransferType(org.springframework.data.domain.Sort sort) Converts the given endpoint value to the transfer type.
-
Constructor Details
-
SortMapper
public SortMapper()
-
-
Method Details
-
getEndpointType
Description copied from interface:EndpointTransferMapper.MapperReturns the type used in the endpoint.- Specified by:
getEndpointTypein interfaceEndpointTransferMapper.Mapper<org.springframework.data.domain.Sort,Sort> - 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.Sort,Sort> - Returns:
- the transfer type
-
toTransferType
Description copied from interface:EndpointTransferMapper.MapperConverts the given endpoint value to the transfer type.- Specified by:
toTransferTypein interfaceEndpointTransferMapper.Mapper<org.springframework.data.domain.Sort,Sort> - Parameters:
sort- the value used in the endpoint- Returns:
- the value used in communication with the client
-
toEndpointType
Description copied from interface:EndpointTransferMapper.MapperConverts the given transfer value to the endpoint type.- Specified by:
toEndpointTypein interfaceEndpointTransferMapper.Mapper<org.springframework.data.domain.Sort,Sort> - Parameters:
transferSort- the value used in communication with the client- Returns:
- the value used in the endpoint
-