sdk-routing / com.tomtom.online.sdk.routing.data.batch / BatchableRoutingResponseVisitor

BatchableRoutingResponseVisitor

interface BatchableRoutingResponseVisitor

A visitor of routing Response objects, implementing the visitor design pattern. Facilitates operating on BatchRoutingResponse and its subtypes.

Functions

visit

abstract fun visit(routeResponse: RouteResponse!): Unit

Allows the use of a visitor design pattern for RouteResponse.

abstract fun visit(reachableRangeesponse: ReachableRangeResponse!): Unit

Allows the use of a visitor design patter for ReachableRangeResponse.

Inheritors

BatchableRoutingResponseVisitorAdapter

open class BatchableRoutingResponseVisitorAdapter : BatchableRoutingResponseVisitor

An empty implementation for BatchableRoutingResponseVisitor. It can be useful for better code readability when not all interface methods are to be implemented.