Record Class StatusResource.ApplicationBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.core.impl.resources.StatusResource.ApplicationBean
- Enclosing class:
StatusResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbranch()Returns the value of thebranchrecord component.Returns the value of thebuildTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstallationrecord component.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
-
ApplicationBean
public ApplicationBean(String version, String revision, String branch, String buildTime, String installation) Creates an instance of aApplicationBeanrecord class.- Parameters:
version- the value for theversionrecord componentrevision- the value for therevisionrecord componentbranch- the value for thebranchrecord componentbuildTime- the value for thebuildTimerecord componentinstallation- the value for theinstallationrecord 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. 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
-
buildTime
Returns the value of thebuildTimerecord component.- Returns:
- the value of the
buildTimerecord component
-
installation
Returns the value of theinstallationrecord component.- Returns:
- the value of the
installationrecord component
-