Package codes.grow.packages.tempo
Record Class BuildInfo
java.lang.Object
java.lang.Record
codes.grow.packages.tempo.BuildInfo
- Record Components:
version- Tempo version, e.g.3.1.1revision- git revisionbranch- git branchbuildUser- build userbuildDate- build dategoVersion- Go version of the binary
public record BuildInfo(String version, String revision, String branch, String buildUser, String buildDate, String goVersion)
extends Record
Build information from
GET /api/status/buildinfo. Unset fields are empty strings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranch()Returns the value of thebranchrecord component.Returns the value of thebuildDaterecord component.Returns the value of thebuildUserrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegoVersionrecord component.final inthashCode()Returns a hash code value for this object.revision()Returns the value of therevisionrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
BuildInfo
public BuildInfo(String version, String revision, String branch, String buildUser, String buildDate, String goVersion) Creates an instance of aBuildInforecord class.- Parameters:
version- the value for theversionrecord componentrevision- the value for therevisionrecord componentbranch- the value for thebranchrecord componentbuildUser- the value for thebuildUserrecord componentbuildDate- the value for thebuildDaterecord componentgoVersion- the value for thegoVersionrecord 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). -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
revision
Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
branch
Returns the value of thebranchrecord component.- Returns:
- the value of the
branchrecord component
-
buildUser
Returns the value of thebuildUserrecord component.- Returns:
- the value of the
buildUserrecord component
-
buildDate
Returns the value of thebuildDaterecord component.- Returns:
- the value of the
buildDaterecord component
-
goVersion
Returns the value of thegoVersionrecord component.- Returns:
- the value of the
goVersionrecord component
-