Class LicenseDetailsImpl

    • Constructor Detail

      • LicenseDetailsImpl

        public LicenseDetailsImpl​(int version,
                                  java.util.List<LicenseRestriction> restrictions)
      • LicenseDetailsImpl

        public LicenseDetailsImpl​(java.lang.String id,
                                  int version)
      • LicenseDetailsImpl

        public LicenseDetailsImpl​(java.lang.String id,
                                  int version,
                                  java.util.List<LicenseRestriction> restrictions)
    • Method Detail

      • getModuleId

        public java.lang.String getModuleId()
        Description copied from interface: LicenseDetails
        Get the module id this license applies to.
        Specified by:
        getModuleId in interface LicenseDetails
        Returns:
        the module id this license applies to.
      • getLicenseDetail

        @Nullable
        public java.lang.String getLicenseDetail​(java.lang.String key)
        Description copied from interface: LicenseDetails
        The value of the LicenseRestriction with the given name.
        Specified by:
        getLicenseDetail in interface LicenseDetails
        Returns:
        null if no license restriction with name==key is found.
      • getVersion

        public int getVersion()
        Description copied from interface: LicenseDetails
        The major version number that this license is good for
        Specified by:
        getVersion in interface LicenseDetails
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object