Record Class ChangelogModule.GitCommit
java.lang.Object
java.lang.Record
net.darkhax.mmc.module.ChangelogModule.GitCommit
- Enclosing class:
ChangelogModule
-
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.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 theshortHashrecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GitCommit
Creates an instance of aGitCommitrecord class.- Parameters:
hash- the value for thehashrecord componentshortHash- the value for theshortHashrecord componentauthor- the value for theauthorrecord componentsubject- the value for thesubjectrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-
shortHash
Returns the value of theshortHashrecord component.- Returns:
- the value of the
shortHashrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-