All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.what3words.javawrapper.request.AbstractBuilder Maven / Gradle / Ivy

There is a newer version: 3.1.21
Show newest version
package com.what3words.javawrapper.request;

import com.what3words.javawrapper.What3WordsV3;
import com.what3words.javawrapper.request.ConvertTo3WARequest.Builder;
import com.what3words.javawrapper.response.APIResponse;

/**
 * Builder class representing the API call to be made. Use any builder methods available to set request parameters
 * before calling execute() to invoke the API request
 */
public abstract class AbstractBuilder {
    protected What3WordsV3 api;
    
    protected AbstractBuilder(What3WordsV3 api) {
        this.api = api;
    }
    
    /**
     * Execute the API call as represented by the values set within this {@link Builder}
     * 
     * @return an {@link APIResponse} representing the response from the what3words API
     */
    public abstract T execute();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy