Record Class TrialLicenseState

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

public record TrialLicenseState(boolean isTrialExpired, Date getTrialExpirationDate) extends Record implements LicenseState
See Also:
  • Constructor Details

    • TrialLicenseState

      public TrialLicenseState(boolean isTrialExpired, Date getTrialExpirationDate)
      Creates an instance of a TrialLicenseState record class.
      Parameters:
      isTrialExpired - the value for the isTrialExpired record component
      getTrialExpirationDate - the value for the getTrialExpirationDate record component
  • Method Details

    • getLicenseMode

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

      public LicenseDetails getModuleLicense()
      Specified by:
      getModuleLicense in interface LicenseState
      Returns:
      the LicenseDetails in effect for this LicenseState for this particular module. If the LicenseMode is not Activated this can be null.
    • getPlatformLicense

      public LicenseDetails getPlatformLicense()
      Specified by:
      getPlatformLicense in interface LicenseState
      Returns:
      the PlatformLicense in effect for this LicenseState. If the LicenseMode is not Activated this can be null.
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • isTrialExpired

      public boolean isTrialExpired()
      Returns the value of the isTrialExpired record component.
      Specified by:
      isTrialExpired in interface LicenseState
      Returns:
      the value of the isTrialExpired record component
    • getTrialExpirationDate

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