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 aActivatedLicenseState
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegetModuleLicense
record component.Returns the value of thegetPlatformLicense
record component.The Date at which this demo's trial period will expire, or expired at if already expired.final int
hashCode()
Returns a hash code value for this object.boolean
Whether 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 aActivatedLicenseState
record class.- Parameters:
getPlatformLicense
- the value for thegetPlatformLicense
record componentgetModuleLicense
- the value for thegetModuleLicense
record component
-
-
Method Details
-
getLicenseMode
- Specified by:
getLicenseMode
in interfaceLicenseState
- 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 interfaceLicenseState
- Returns:
- true if the demo's trial has expired
-
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 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 thegetPlatformLicense
record component.- Specified by:
getPlatformLicense
in interfaceLicenseState
- Returns:
- the value of the
getPlatformLicense
record component
-
getModuleLicense
Returns the value of thegetModuleLicense
record component.- Specified by:
getModuleLicense
in interfaceLicenseState
- Returns:
- the value of the
getModuleLicense
record component
-