Record Class GitScriptlerRepository.LogInfo
java.lang.Object
java.lang.Record
org.jenkinsci.plugins.scriptler.git.GitScriptlerRepository.LogInfo
- Enclosing class:
- GitScriptlerRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.lib.PersonIdentauthor()Returns the value of theauthorrecord component.org.eclipse.jgit.lib.PersonIdentReturns the value of thecommitterrecord component.Returns the value of thecommitTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.msg()Returns the value of themsgrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LogInfo
public LogInfo(org.eclipse.jgit.revwalk.RevCommit c) -
LogInfo
public LogInfo(String name, org.eclipse.jgit.lib.PersonIdent author, org.eclipse.jgit.lib.PersonIdent committer, Date commitTime, String msg) Creates an instance of aLogInforecord class.- Parameters:
name- the value for thenamerecord componentauthor- the value for theauthorrecord componentcommitter- the value for thecommitterrecord componentcommitTime- the value for thecommitTimerecord componentmsg- the value for themsgrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
author
public org.eclipse.jgit.lib.PersonIdent author()Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
committer
public org.eclipse.jgit.lib.PersonIdent committer()Returns the value of thecommitterrecord component.- Returns:
- the value of the
committerrecord component
-
commitTime
Returns the value of thecommitTimerecord component.- Returns:
- the value of the
commitTimerecord component
-
msg
Returns the value of themsgrecord component.- Returns:
- the value of the
msgrecord component
-