Record Class BuildDataReader.BuildData
java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.core.util.versioning.BuildDataReader.BuildData
- Record Components:
git- The git data with the branch, commit hash, dirty status (i.e. modified version of the commit), and commit time.buildNumber- The number of the build. Using GitHub Actions (which we do), this refers to GITHUB_RUN_NUMBER. This number is incremented for each new run of a particular workflow.buildId- The unique id of the build. Using GitHub Actions, this refers to GITHUB_RUN_ID.
- Enclosing class:
BuildDataReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbuildId()Returns the value of thebuildIdrecord component.longReturns the value of thebuildNumberrecord component.final booleanIndicates whether some other object is "equal to" this one.git()Returns the value of thegitrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BuildData
Creates an instance of aBuildDatarecord class.- Parameters:
git- the value for thegitrecord componentbuildNumber- the value for thebuildNumberrecord componentbuildId- the value for thebuildIdrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
git
-
buildNumber
public long buildNumber()Returns the value of thebuildNumberrecord component.- Returns:
- the value of the
buildNumberrecord component
-
buildId
-