Class Changes.NotImplemented
java.lang.Object
com.google.gerrit.extensions.api.changes.Changes.NotImplemented
- All Implemented Interfaces:
Changes
- Enclosing interface:
- Changes
A default implementation which allows source compatibility when adding new methods to the
interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.api.changes.Changes
Changes.NotImplemented, Changes.QueryRequest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ChangeInput in) id(int id) Look up a change by numeric ID.Look up a change by string ID.Look up a change by project and numeric ID.Look up a change by project, branch, and change ID.query()
-
Constructor Details
-
NotImplemented
public NotImplemented()
-
-
Method Details
-
id
Description copied from interface:ChangesLook up a change by numeric ID.Note: This method eagerly reads the change. Methods that mutate the change do not necessarily re-read the change. Therefore, calling a getter method on an instance after calling a mutation method on that same instance is not guaranteed to reflect the mutation. It is not recommended to store references to
ChangeApiinstances. Also note that the change numeric id without a project name parameter may fail to identify a unique change element, because the potential conflict with other changes imported from Gerrit instances with a different Server-Id.- Specified by:
idin interfaceChanges- Parameters:
id- change number.- Returns:
- API for accessing the change.
- Throws:
RestApiException- if an error occurred.
-
id
Description copied from interface:ChangesLook up a change by string ID.- Specified by:
idin interfaceChanges- Parameters:
triplet- any identifier supported by the REST API, including change number, Change-Id, or project~branch~Change-Id triplet.- Returns:
- API for accessing the change.
- Throws:
RestApiException- if an error occurred.- See Also:
-
id
Description copied from interface:ChangesLook up a change by project, branch, and change ID.- Specified by:
idin interfaceChanges- Throws:
RestApiException- See Also:
-
id
Description copied from interface:ChangesLook up a change by project and numeric ID.- Specified by:
idin interfaceChanges- Parameters:
project- project name.id- change number.- Throws:
RestApiException- See Also:
-
create
- Specified by:
createin interfaceChanges- Throws:
RestApiException
-
createAsInfo
- Specified by:
createAsInfoin interfaceChanges- Throws:
RestApiException
-
query
-
query
-