Package org.geysermc.geyser.dump
Record Class DumpInfo.GitInfo
java.lang.Object
java.lang.Record
org.geysermc.geyser.dump.DumpInfo.GitInfo
- Enclosing class:
- DumpInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebranchNamerecord component.Returns the value of thebuildNumberrecord component.Returns the value of thecommitHashrecord component.Returns the value of thecommitHashAbbrevrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of theoriginUrlrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
GitInfo
public GitInfo(String buildNumber, String commitHashAbbrev, String commitHash, String branchName, String originUrl)Creates an instance of aGitInforecord class.- Parameters:
buildNumber- the value for thebuildNumberrecord componentcommitHashAbbrev- the value for thecommitHashAbbrevrecord componentcommitHash- the value for thecommitHashrecord componentbranchName- the value for thebranchNamerecord componentoriginUrl- the value for theoriginUrlrecord 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). -
buildNumber
Returns the value of thebuildNumberrecord component.- Returns:
- the value of the
buildNumberrecord component
-
commitHashAbbrev
Returns the value of thecommitHashAbbrevrecord component.- Returns:
- the value of the
commitHashAbbrevrecord component
-
commitHash
Returns the value of thecommitHashrecord component.- Returns:
- the value of the
commitHashrecord component
-
branchName
Returns the value of thebranchNamerecord component.- Returns:
- the value of the
branchNamerecord component
-
originUrl
Returns the value of theoriginUrlrecord component.- Returns:
- the value of the
originUrlrecord component
-