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

org.kohsuke.github.GitHubRequestBuilderDone Maven / Gradle / Ivy

The newest version!
package org.kohsuke.github;

import java.io.IOException;

/**
 * The done method for data object builder/updater.
 *
 * This interface can be used to make a Builder that supports both batch and single property changes.
 * 

* Batching looks like this: *

* *
 * update().someName(value).otherName(value).done()
 * 
*

* Single changes look like this: *

* *
 * set().someName(value);
 * set().otherName(value);
 * 
* * @author Liam Newman * @param * Final return type built by this builder returned when {@link #done()}} is called. */ public interface GitHubRequestBuilderDone { /** * Finishes a create or update request, committing changes. * * This method may update-in-place or not. Either way it returns the resulting instance. * * @return an instance with updated current data * @throws IOException * if there is an I/O Exception */ @BetaApi R done() throws IOException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy