Record Class SequenceEngine.Meta
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.git.sequence.SequenceEngine.Meta
- Record Components:
id- the full idparents- the number of parentsmessage- the complete message- who made the commit, when
- Enclosing interface:
SequenceEngine
public static record SequenceEngine.Meta(String id, int parents, String message, SequenceEngine.Author author)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMeta(String id, int parents, String message, SequenceEngine.Author author) Creates an instance of aMetarecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.message()Returns the value of themessagerecord component.intparents()Returns the value of theparentsrecord component.subject()The first line of the message.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
subject
The first line of the message. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
parents
public int parents()Returns the value of theparentsrecord component.- Returns:
- the value of the
parentsrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-