Class SortMapper

java.lang.Object
com.vaadin.hilla.endpointransfermapper.SortMapper
All Implemented Interfaces:
EndpointTransferMapper.Mapper<org.springframework.data.domain.Sort,com.vaadin.hilla.mappedtypes.Sort>

public class SortMapper extends Object implements EndpointTransferMapper.Mapper<org.springframework.data.domain.Sort,com.vaadin.hilla.mappedtypes.Sort>
A mapper between Sort and Sort.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends org.springframework.data.domain.Sort>
    Returns the type used in the endpoint.
    Class<? extends com.vaadin.hilla.mappedtypes.Sort>
    Returns the type used when transfering data to/from the client.
    org.springframework.data.domain.Sort
    toEndpointType(com.vaadin.hilla.mappedtypes.Sort transferSort)
    Converts the given transfer value to the endpoint type.
    com.vaadin.hilla.mappedtypes.Sort
    toTransferType(org.springframework.data.domain.Sort sort)
    Converts the given endpoint value to the transfer type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SortMapper

      public SortMapper()
  • Method Details

    • getEndpointType

      public Class<? extends org.springframework.data.domain.Sort> getEndpointType()
      Description copied from interface: EndpointTransferMapper.Mapper
      Returns the type used in the endpoint.
      Specified by:
      getEndpointType in interface EndpointTransferMapper.Mapper<org.springframework.data.domain.Sort,com.vaadin.hilla.mappedtypes.Sort>
      Returns:
      the endpoint type
    • getTransferType

      public Class<? extends com.vaadin.hilla.mappedtypes.Sort> getTransferType()
      Description copied from interface: EndpointTransferMapper.Mapper
      Returns the type used when transfering data to/from the client.
      Specified by:
      getTransferType in interface EndpointTransferMapper.Mapper<org.springframework.data.domain.Sort,com.vaadin.hilla.mappedtypes.Sort>
      Returns:
      the transfer type
    • toTransferType

      public com.vaadin.hilla.mappedtypes.Sort toTransferType(org.springframework.data.domain.Sort sort)
      Description copied from interface: EndpointTransferMapper.Mapper
      Converts the given endpoint value to the transfer type.
      Specified by:
      toTransferType in interface EndpointTransferMapper.Mapper<org.springframework.data.domain.Sort,com.vaadin.hilla.mappedtypes.Sort>
      Parameters:
      sort - the value used in the endpoint
      Returns:
      the value used in communication with the client
    • toEndpointType

      public org.springframework.data.domain.Sort toEndpointType(com.vaadin.hilla.mappedtypes.Sort transferSort)
      Description copied from interface: EndpointTransferMapper.Mapper
      Converts the given transfer value to the endpoint type.
      Specified by:
      toEndpointType in interface EndpointTransferMapper.Mapper<org.springframework.data.domain.Sort,com.vaadin.hilla.mappedtypes.Sort>
      Parameters:
      transferSort - the value used in communication with the client
      Returns:
      the value used in the endpoint