Record Class ActivatedLicenseState

java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.licensing.ActivatedLicenseState
All Implemented Interfaces:
LicenseState, Serializable

public record ActivatedLicenseState(LicenseDetails getPlatformLicense, LicenseDetails getModuleLicense) extends Record implements LicenseState
See Also:
  • Constructor Details

    • ActivatedLicenseState

      public ActivatedLicenseState(LicenseDetails getPlatformLicense, LicenseDetails getModuleLicense)
      Creates an instance of a ActivatedLicenseState record class.
      Parameters:
      getPlatformLicense - the value for the getPlatformLicense record component
      getModuleLicense - the value for the getModuleLicense record component
  • Method Details

    • getLicenseMode

      public LicenseMode getLicenseMode()
      Specified by:
      getLicenseMode in interface LicenseState
      Returns:
      the LicenseMode for this given LicenseState.
    • isTrialExpired

      public boolean isTrialExpired()
      Description copied from interface: LicenseState
      Whether or not this demo's trial period has expired. Only relevant when the LicenseMode is Trial.
      Specified by:
      isTrialExpired in interface LicenseState
      Returns:
      true if the demo's trial has expired
    • getTrialExpirationDate

      public Date getTrialExpirationDate()
      Description copied from interface: LicenseState
      The Date at which this demo's trial period will expire, or expired at if already expired. Not relevant unless the LicenseMode is Demo.
      Specified by:
      getTrialExpirationDate in interface LicenseState
    • toString

      public 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.
    • getPlatformLicense

      public LicenseDetails getPlatformLicense()
      Returns the value of the getPlatformLicense record component.
      Specified by:
      getPlatformLicense in interface LicenseState
      Returns:
      the value of the getPlatformLicense record component
    • getModuleLicense

      public LicenseDetails getModuleLicense()
      Returns the value of the getModuleLicense record component.
      Specified by:
      getModuleLicense in interface LicenseState
      Returns:
      the value of the getModuleLicense record component