Record Class CommitDto
java.lang.Object
java.lang.Record
com.codebarrel.automation.api.devops.schema.CommitDto
public record CommitDto(UserReferenceDto author, String hash, URL url, Instant timestamp, Set<String> flags, String message)
extends Record
Mirror class for com.atlassian.devops.schemas.commit.Commit.
Used for Jackson 3 deserialization since the original library uses Jackson 2.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.final booleanIndicates whether some other object is "equal to" this one.flags()Returns the value of theflagsrecord component.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
CommitDto
public CommitDto(UserReferenceDto author, String hash, URL url, Instant timestamp, Set<String> flags, String message) Creates an instance of aCommitDtorecord class.- Parameters:
author- the value for theauthorrecord componenthash- the value for thehashrecord componenturl- the value for theurlrecord componenttimestamp- the value for thetimestamprecord componentflags- the value for theflagsrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-