Record Class GitScriptlerRepository.LogInfo
java.lang.Object
java.lang.Record
org.jenkinsci.plugins.scriptler.git.GitScriptlerRepository.LogInfo
- Enclosing class:
- GitScriptlerRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.lib.PersonIdent
author()
Returns the value of theauthor
record component.org.eclipse.jgit.lib.PersonIdent
Returns the value of thecommitter
record component.Returns the value of thecommitTime
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.msg()
Returns the value of themsg
record component.name()
Returns the value of thename
record component.final String
toString()
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 aLogInfo
record class.- Parameters:
name
- the value for thename
record componentauthor
- the value for theauthor
record componentcommitter
- the value for thecommitter
record componentcommitTime
- the value for thecommitTime
record componentmsg
- the value for themsg
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
author
public org.eclipse.jgit.lib.PersonIdent author()Returns the value of theauthor
record component.- Returns:
- the value of the
author
record component
-
committer
public org.eclipse.jgit.lib.PersonIdent committer()Returns the value of thecommitter
record component.- Returns:
- the value of the
committer
record component
-
commitTime
Returns the value of thecommitTime
record component.- Returns:
- the value of the
commitTime
record component
-
msg
Returns the value of themsg
record component.- Returns:
- the value of the
msg
record component
-