Package com.google.gerrit.server.change
Class ChangeMessageResource
java.lang.Object
com.google.gerrit.server.change.ChangeMessageResource
- All Implemented Interfaces:
RestResource
A change message resource.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.restapi.RestResource
RestResource.HasETag, RestResource.HasLastModified
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.inject.TypeLiteral<RestView<ChangeMessageResource>>
-
Constructor Summary
ConstructorsConstructorDescriptionChangeMessageResource
(ChangeResource changeResource, ChangeMessageInfo changeMessage, int changeMessageIndex) -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the index of the change message among all messages of the change sorted by creation time.
-
Field Details
-
CHANGE_MESSAGE_KIND
public static final com.google.inject.TypeLiteral<RestView<ChangeMessageResource>> CHANGE_MESSAGE_KIND
-
-
Constructor Details
-
ChangeMessageResource
public ChangeMessageResource(ChangeResource changeResource, ChangeMessageInfo changeMessage, int changeMessageIndex)
-
-
Method Details
-
getChangeResource
-
getChangeMessage
-
getChangeId
-
getChangeMessageId
-
getChangeMessageIndex
public int getChangeMessageIndex()Gets the index of the change message among all messages of the change sorted by creation time.- Returns:
- the index of the change message.
-