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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.common.licensing.LicenseState
LicenseState.GsonAdapter -
Constructor Summary
ConstructorsConstructorDescriptionActivatedLicenseState(LicenseDetails getPlatformLicense, LicenseDetails getModuleLicense) Creates an instance of aActivatedLicenseStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegetModuleLicenserecord component.Returns the value of thegetPlatformLicenserecord component.The Date at which this demo's trial period will expire, or expired at if already expired.final inthashCode()Returns a hash code value for this object.booleanWhether or not this demo's trial period has expired.toString()Returns a string representation of this record class.
-
Constructor Details
-
ActivatedLicenseState
Creates an instance of aActivatedLicenseStaterecord class.- Parameters:
getPlatformLicense- the value for thegetPlatformLicenserecord componentgetModuleLicense- the value for thegetModuleLicenserecord component
-
-
Method Details
-
getLicenseMode
- Specified by:
getLicenseModein interfaceLicenseState- Returns:
- the
LicenseModefor this given LicenseState.
-
isTrialExpired
public boolean isTrialExpired()Description copied from interface:LicenseStateWhether or not this demo's trial period has expired. Only relevant when the LicenseMode is Trial.- Specified by:
isTrialExpiredin interfaceLicenseState- Returns:
- true if the demo's trial has expired
-
getTrialExpirationDate
Description copied from interface:LicenseStateThe 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:
getTrialExpirationDatein interfaceLicenseState
-
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). -
getPlatformLicense
Returns the value of thegetPlatformLicenserecord component.- Specified by:
getPlatformLicensein interfaceLicenseState- Returns:
- the value of the
getPlatformLicenserecord component
-
getModuleLicense
Returns the value of thegetModuleLicenserecord component.- Specified by:
getModuleLicensein interfaceLicenseState- Returns:
- the value of the
getModuleLicenserecord component
-