Class GHLicense

    • Constructor Detail

      • GHLicense

        public GHLicense()
    • Method Detail

      • getKey

        public String getKey()
        Gets key.
        Returns:
        a mnemonic for the license
      • getName

        public String getName()
        Gets name.
        Returns:
        the license name
      • isFeatured

        public Boolean isFeatured()
                           throws IOException
        Featured licenses are bold in the new repository drop-down
        Returns:
        True if the license is featured, false otherwise
        Throws:
        IOException - the io exception
      • getDescription

        public String getDescription()
                              throws IOException
        Gets description.
        Returns:
        the description
        Throws:
        IOException - the io exception
      • getImplementation

        public String getImplementation()
                                 throws IOException
        Gets implementation.
        Returns:
        the implementation
        Throws:
        IOException - the io exception
      • populate

        protected void populate()
                         throws IOException
        Fully populate the data by retrieving missing data.

        Depending on the original API call where this object is created, it may not contain everything.

        Throws:
        IOException - the io exception
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object