algoliasearch/src/main/java/com/algolia/search/saas/Index.java
public JSONObject getObject(String objectID, @Nullable RequestOptions requestOptions) throws AlgoliaException {
        try {
            return client.getRequest("/1/indexes/" + encodedIndexName + "/" + URLEncoder.encode(objectID, "UTF-8"), /* urlParameters: */ null, false, requestOptions);
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e);
        }
    }
public JSONObject getObject(String objectID, @Nullable RequestOptions requestOptions) throws AlgoliaException {
        try {
            return client.getRequest("/1/indexes/" + encodedIndexName + "/" + URLEncoder.encode(objectID, "UTF-8"), /* urlParameters: */ null, false, requestOptions);
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e);
        }
    }
public JSONObject getObject ( String objectID , @ Nullable RequestOptions requestOptions ) throws AlgoliaException { try { return client . getRequest ( "/1/indexes/" + encodedIndexName + "/" + URLEncoder . encode ( objectID , "UTF-8" ) , /* urlParameters: */ null , false , requestOptions ) ; } catch ( UnsupportedEncodingException e ) { throw new RuntimeException ( e ) ; } }
Gets an object from this index.

@param objectID       the unique identifier of the object to retrieve
@param requestOptions Request-specific options.
@throws AlgoliaException
Gets an object from this index .