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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.common.licensing.LicenseState
LicenseState.GsonAdapter -
Constructor Summary
ConstructorsConstructorDescriptionTrialLicenseState(boolean isTrialExpired, Date getTrialExpirationDate) Creates an instance of aTrialLicenseStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegetTrialExpirationDaterecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisTrialExpiredrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
TrialLicenseState
Creates an instance of aTrialLicenseStaterecord class.- Parameters:
isTrialExpired- the value for theisTrialExpiredrecord componentgetTrialExpirationDate- the value for thegetTrialExpirationDaterecord component
-
-
Method Details
-
getLicenseMode
- Specified by:
getLicenseModein interfaceLicenseState- Returns:
- the
LicenseModefor this given LicenseState.
-
getModuleLicense
- Specified by:
getModuleLicensein interfaceLicenseState- Returns:
- the LicenseDetails in effect for this LicenseState for this particular module. If the LicenseMode is not Activated this can be null.
-
getPlatformLicense
- Specified by:
getPlatformLicensein interfaceLicenseState- Returns:
- the PlatformLicense in effect for this LicenseState. If the LicenseMode is not Activated this can be null.
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
isTrialExpired
public boolean isTrialExpired()Returns the value of theisTrialExpiredrecord component.- Specified by:
isTrialExpiredin interfaceLicenseState- Returns:
- the value of the
isTrialExpiredrecord component
-
getTrialExpirationDate
Returns the value of thegetTrialExpirationDaterecord component.- Specified by:
getTrialExpirationDatein interfaceLicenseState- Returns:
- the value of the
getTrialExpirationDaterecord component
-