com.what3words.javawrapper.request.AbstractBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of w3w-java-wrapper Show documentation
Show all versions of w3w-java-wrapper Show documentation
Java library for what3words REST API.
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();
}