Class StopWatch
java.lang.Object
build.cursed.genapi.forgejo.model.StopWatch
@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 StopWatch
extends Object
StopWatch represent a running stopwatch
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreated(OffsetDateTime created) booleanstatic StopWatchCreate an instance of StopWatch given an JSON stringGet createdGet durationGet issueIndexGet issueTitleGet repoNameGet repoOwnerNameGet secondsinthashCode()issueIndex(Long issueIndex) issueTitle(String issueTitle) repoOwnerName(String repoOwnerName) voidsetCreated(OffsetDateTime created) voidsetDuration(String duration) voidsetIssueIndex(Long issueIndex) voidsetIssueTitle(String issueTitle) voidsetRepoName(String repoName) voidsetRepoOwnerName(String repoOwnerName) voidsetSeconds(Long seconds) toJson()Convert an instance of StopWatch 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_CREATED
- See Also:
-
SERIALIZED_NAME_DURATION
- See Also:
-
SERIALIZED_NAME_ISSUE_INDEX
- See Also:
-
SERIALIZED_NAME_ISSUE_TITLE
- See Also:
-
SERIALIZED_NAME_REPO_NAME
- See Also:
-
SERIALIZED_NAME_REPO_OWNER_NAME
- See Also:
-
SERIALIZED_NAME_SECONDS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
StopWatch
public StopWatch()
-
-
Method Details
-
created
-
getCreated
Get created- Returns:
- created
-
setCreated
-
duration
-
getDuration
Get duration- Returns:
- duration
-
setDuration
-
issueIndex
-
getIssueIndex
Get issueIndex- Returns:
- issueIndex
-
setIssueIndex
-
issueTitle
-
getIssueTitle
Get issueTitle- Returns:
- issueTitle
-
setIssueTitle
-
repoName
-
getRepoName
Get repoName- Returns:
- repoName
-
setRepoName
-
repoOwnerName
-
getRepoOwnerName
Get repoOwnerName- Returns:
- repoOwnerName
-
setRepoOwnerName
-
seconds
-
getSeconds
Get seconds- Returns:
- seconds
-
setSeconds
-
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 StopWatch
-
fromJson
Create an instance of StopWatch given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StopWatch
- Throws:
IOException- if the JSON string is invalid with respect to StopWatch
-
toJson
Convert an instance of StopWatch to an JSON string- Returns:
- JSON string
-