Record Class LicenseDetailsImpl
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.licensing.LicenseDetailsImpl
- All Implemented Interfaces:
LicenseDetails,Serializable
public record LicenseDetailsImpl(String id, int version, List<LicenseRestriction> restrictions)
extends Record
implements LicenseDetails
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.common.licensing.LicenseDetails
LicenseDetails.GsonAdapter -
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.common.licensing.LicenseDetails
DETAIL_KEY_EDITION, DETAIL_KEY_EXPIRATION, DETAIL_KEY_MIN_BUILD, DETAIL_KEY_PLATFORM_BUNDLED, REDUNDANT_BACKUP -
Constructor Summary
ConstructorsConstructorDescriptionLicenseDetailsImpl(int version, List<LicenseRestriction> restrictions) LicenseDetailsImpl(String id, int version) LicenseDetailsImpl(String id, int version, List<LicenseRestriction> restrictions) Creates an instance of aLicenseDetailsImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getLicenseDetail(String key) The value of the LicenseRestriction with the given name.Returns all of the license details as a listGet the module id this license applies to.intThe major version number that this license is good forfinal inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of therestrictionsrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.licensing.LicenseDetails
checkFlag, getExpirationDate, isPlatformDetails
-
Constructor Details
-
LicenseDetailsImpl
-
LicenseDetailsImpl
-
LicenseDetailsImpl
Creates an instance of aLicenseDetailsImplrecord class.- Parameters:
id- the value for theidrecord componentversion- the value for theversionrecord componentrestrictions- the value for therestrictionsrecord component
-
-
Method Details
-
getModuleId
Description copied from interface:LicenseDetailsGet the module id this license applies to.- Specified by:
getModuleIdin interfaceLicenseDetails- Returns:
- the module id this license applies to.
-
getLicenseDetail
Description copied from interface:LicenseDetailsThe value of the LicenseRestriction with the given name.- Specified by:
getLicenseDetailin interfaceLicenseDetails- Returns:
- null if no license restriction with name==key is found.
-
getLicenseDetails
Description copied from interface:LicenseDetailsReturns all of the license details as a list- Specified by:
getLicenseDetailsin interfaceLicenseDetails
-
getVersion
public int getVersion()Description copied from interface:LicenseDetailsThe major version number that this license is good for- Specified by:
getVersionin interfaceLicenseDetails
-
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
restrictions
Returns the value of therestrictionsrecord component.- Returns:
- the value of the
restrictionsrecord component
-