Change API: Add convenience get() and info() methods

Add aliases to ChangeInfo get(EnumSet<ListChangesOption>) method for
frequently used change info retrieval operations:

* get() with ListChangesOption set to ALL
* info() with ListChangesOption set to NONE

Change-Id: Ie9229923d1af39c34ca4dbffec8511e242051a9a
This commit is contained in:
David Ostrovsky
2014-02-01 01:20:38 +01:00
parent 5b269c3c25
commit 03ff325a0d
4 changed files with 33 additions and 12 deletions

View File

@@ -40,4 +40,9 @@ public interface ChangeApi {
void addReviewer(String in) throws RestApiException;
ChangeInfo get(EnumSet<ListChangesOption> options) throws RestApiException;
/** {@code get} with {@link ListChangesOption} set to ALL. */
ChangeInfo get() throws RestApiException;
/** {@code get} with {@link ListChangesOption} set to NONE. */
ChangeInfo info() throws RestApiException;
}