Interface EndpointTransferMapper.Mapper<ENDPOINTTYPE,​TRANSFERTYPE>

  • Type Parameters:
    ENDPOINTTYPE - The type used in endpoints
    TRANSFERTYPE - the type used in communication with the client
    All Known Implementing Classes:
    PageableMapper, PageMapper, SortMapper, UUIDMapper
    Enclosing class:
    EndpointTransferMapper

    public static interface EndpointTransferMapper.Mapper<ENDPOINTTYPE,​TRANSFERTYPE>
    A mapper for endpoint values that is capable of converting between the given endpoint and transfer type.
    • Method Detail

      • getEndpointType

        Class<? extends ENDPOINTTYPE> getEndpointType()
        Returns the type used in the endpoint.
        Returns:
        the endpoint type
      • getTransferType

        Class<? extends TRANSFERTYPE> getTransferType()
        Returns the type used when transfering data to/from the client.
        Returns:
        the transfer type
      • toTransferType

        TRANSFERTYPE toTransferType​(ENDPOINTTYPE endpointType)
        Converts the given endpoint value to the transfer type.
        Parameters:
        endpointType - the value used in the endpoint
        Returns:
        the value used in communication with the client
      • toEndpointType

        ENDPOINTTYPE toEndpointType​(TRANSFERTYPE transferType)
        Converts the given transfer value to the endpoint type.
        Parameters:
        transferType - the value used in communication with the client
        Returns:
        the value used in the endpoint