Package com.io7m.quarrel.core
Record Class QApplicationMetadata
java.lang.Object
java.lang.Record
com.io7m.quarrel.core.QApplicationMetadata
- Record Components:
applicationName- The short name of the application used in command-line usage messages (such as "idstore")applicationId- The application ID (such as "com.io7m.idstore")version- The version (such as "1.0.0")build- The build (such as "25695d1e138bc93f21759a990d676e02951b0ae4")title- The application titlesite- The site (such as "https://www.io7m.com/software/idstore")
public record QApplicationMetadata(String applicationName, String applicationId, String version, String build, String title, Optional<URI> site)
extends Record
The application metadata.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationIdrecord component.Returns the value of theapplicationNamerecord component.build()Returns the value of thebuildrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.site()Returns the value of thesiterecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
QApplicationMetadata
public QApplicationMetadata(String applicationName, String applicationId, String version, String build, String title, Optional<URI> site) The application metadata.- Parameters:
applicationName- The short name of the application used in command-line usage messages (such as "idstore")applicationId- The application ID (such as "com.io7m.idstore")version- The version (such as "1.0.0")build- The build (such as "25695d1e138bc93f21759a990d676e02951b0ae4")title- The application titlesite- The site (such as "https://www.io7m.com/software/idstore")
-
-
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). -
applicationName
Returns the value of theapplicationNamerecord component.- Returns:
- the value of the
applicationNamerecord component
-
applicationId
Returns the value of theapplicationIdrecord component.- Returns:
- the value of the
applicationIdrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
build
Returns the value of thebuildrecord component.- Returns:
- the value of the
buildrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
site
Returns the value of thesiterecord component.- Returns:
- the value of the
siterecord component
-