Record Class BuildInfo
java.lang.Object
java.lang.Record
com.palmergames.bukkit.towny.object.BuildInfo
- Record Components:
commit- The full SHA-1 hash of the most recent commit.commitShort- The shortened hash of the most recent commit.branch- The branch this jar was built from.repositoryUrl- The url for the remote git repository.message- The subject of the most recent commit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranch()Returns the value of thebranchrecord component.commit()Returns the value of thecommitrecord component.Returns the value of thecommitShortrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of therepositoryUrlrecord component.static BuildInforetrieveBuildInfo(Towny plugin) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BuildInfo
public BuildInfo(String commit, String commitShort, String branch, String repositoryUrl, String message) Creates an instance of aBuildInforecord class.- Parameters:
commit- the value for thecommitrecord componentcommitShort- the value for thecommitShortrecord componentbranch- the value for thebranchrecord componentrepositoryUrl- the value for therepositoryUrlrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
retrieveBuildInfo
- Throws:
IOException
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
commit
-
commitShort
Returns the value of thecommitShortrecord component.- Returns:
- the value of the
commitShortrecord component
-
branch
-
repositoryUrl
Returns the value of therepositoryUrlrecord component.- Returns:
- the value of the
repositoryUrlrecord component
-
message
-