Record Class SoftwareProviderMetadata

java.lang.Object
java.lang.Record
org.projecthusky.fhir.emed.ch.epr.narrative.html.SoftwareProviderMetadata

public record SoftwareProviderMetadata(@Nullable String softwareName, @Nullable String softwareVersion, @Nullable String softwareProvider) extends Record
  • Constructor Details

    • SoftwareProviderMetadata

      public SoftwareProviderMetadata(@Nullable String softwareName, @Nullable String softwareVersion, @Nullable String softwareProvider)
      Creates an instance of a SoftwareProviderMetadata record class.
      Parameters:
      softwareName - the value for the softwareName record component
      softwareVersion - the value for the softwareVersion record component
      softwareProvider - the value for the softwareProvider record component
  • Method Details

    • hasSoftwareName

      public boolean hasSoftwareName()
    • hasSoftwareVersion

      public boolean hasSoftwareVersion()
    • hasSoftwareProvider

      public boolean hasSoftwareProvider()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • softwareName

      public @Nullable String softwareName()
      Returns the value of the softwareName record component.
      Returns:
      the value of the softwareName record component
    • softwareVersion

      public @Nullable String softwareVersion()
      Returns the value of the softwareVersion record component.
      Returns:
      the value of the softwareVersion record component
    • softwareProvider

      public @Nullable String softwareProvider()
      Returns the value of the softwareProvider record component.
      Returns:
      the value of the softwareProvider record component