sdk-search / com.tomtom.online.sdk.search.data.batch / BatchableSearchResponseVisitor

BatchableSearchResponseVisitor

interface BatchableSearchResponseVisitor

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

Functions

visit

abstract fun visit(fuzzySearchResponse: FuzzySearchResponse!): Unit

Allows the use of a visitor design pattern for FuzzySearchResponse. If you only want to use this method, then extend BatchableSearchResponseVisitorAdapter instead of implementing this interface.

abstract fun visit(geometrySearchResponse: GeometrySearchResponse!): Unit

Allows the use of a visitor design pattern for GeometrySearchResponse. If you only want to use this method then extend BatchableSearchResponseVisitorAdapter instead of implementing this interface.

abstract fun visit(reverseGeocoderSearchResponse: ReverseGeocoderSearchResponse!): Unit

Allows the use of a visitor design pattern for ReverseGeocoderSearchResponse. If you only want to use this method then extend BatchableSearchResponseVisitorAdapter instead of implementing this interface.

abstract fun visit(evChargingStationsAvailabilityResponse: EvChargingStationsAvailabilityResponse!): Unit

Allows the use of a visitor design pattern for EvChargingStationsAvailabilityResponse. If you only want to use this method then extend BatchableSearchResponseVisitorAdapter instead of implementing this interface.

Inheritors

BatchableSearchResponseVisitorAdapter

open class BatchableSearchResponseVisitorAdapter : BatchableSearchResponseVisitor

This is an empty implementation for BatchableSearchResponseVisitor. It can be useful for better code readability when not all interface methods are to be implemented.