Record Class StashInfo
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.git.api.StashInfo
- Record Components:
index- position in the stash list;0is the newest (stash@{0})message- description, e.g.WIP on main: abc1234 SubjectcommitId- the stash committime- when it was made
A stash entry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommitId()Returns the value of thecommitIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.message()Returns the value of themessagerecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StashInfo
A stash whose time is not known. -
StashInfo
Creates an instance of aStashInforecord class.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
commitId
Returns the value of thecommitIdrecord component.- Returns:
- the value of the
commitIdrecord component
-
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-