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 aTrialLicenseState
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegetTrialExpirationDate
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisTrialExpired
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
TrialLicenseState
Creates an instance of aTrialLicenseState
record class.- Parameters:
isTrialExpired
- the value for theisTrialExpired
record componentgetTrialExpirationDate
- the value for thegetTrialExpirationDate
record component
-
-
Method Details
-
getLicenseMode
- Specified by:
getLicenseMode
in interfaceLicenseState
- Returns:
- the
LicenseMode
for this given LicenseState.
-
getModuleLicense
- Specified by:
getModuleLicense
in 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:
getPlatformLicense
in 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 theisTrialExpired
record component.- Specified by:
isTrialExpired
in interfaceLicenseState
- Returns:
- the value of the
isTrialExpired
record component
-
getTrialExpirationDate
Returns the value of thegetTrialExpirationDate
record component.- Specified by:
getTrialExpirationDate
in interfaceLicenseState
- Returns:
- the value of the
getTrialExpirationDate
record component
-