Class License

java.lang.Object
ai.djl.repository.License

public class License extends Object
A License is a container to save the license information.
See Also:
  • Constructor Details

    • License

      public License()
  • Method Details

    • apache

      public static License apache()
      The default Apache License.
      Returns:
      Apache license
    • getName

      public String getName()
      Returns the name of the license.
      Returns:
      the name of the license
    • setName

      public void setName(String name)
      Sets the name of the license.
      Parameters:
      name - the name of the license
    • getUrl

      public String getUrl()
      Returns the url of the license.
      Returns:
      the url of the license
    • setUrl

      public void setUrl(String url)
      Sets the url of the license.
      Parameters:
      url - the url of the license;
    • setId

      public void setId(String id)
      Sets the identifier of the license.
      Parameters:
      id - the identifier of the license.
    • getId

      public String getId()
      Returns the identifier of the license.
      Returns:
      the identifier of the license