Class CommitStats
java.lang.Object
build.cursed.genapi.forgejo.model.CommitStats
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class CommitStats
extends Object
CommitStats is statistics for a RepoCommit
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CommitStatsCreate an instance of CommitStats given an JSON stringGet additionsGet deletionsgetTotal()Get totalinthashCode()voidsetAdditions(Long additions) voidsetDeletions(Long deletions) voidtoJson()Convert an instance of CommitStats to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ADDITIONS
- See Also:
-
SERIALIZED_NAME_DELETIONS
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CommitStats
public CommitStats()
-
-
Method Details
-
additions
-
getAdditions
Get additions- Returns:
- additions
-
setAdditions
-
deletions
-
getDeletions
Get deletions- Returns:
- deletions
-
setDeletions
-
total
-
getTotal
Get total- Returns:
- total
-
setTotal
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to CommitStats
-
fromJson
Create an instance of CommitStats given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CommitStats
- Throws:
IOException- if the JSON string is invalid with respect to CommitStats
-
toJson
Convert an instance of CommitStats to an JSON string- Returns:
- JSON string
-