Class GHLabel


  • public class GHLabel
    extends Object
    GitHub label.
    • Constructor Detail

      • GHLabel

        public GHLabel​(String name)
        Create a label with the default label color.
        Parameters:
        name - The name of the label.
      • GHLabel

        public GHLabel​(String name,
                       String hexColor)
        Create a label with a specific label color.
        Parameters:
        name - The name of the label.
        hexColor - A 6 character hex code, without the leading #, identifying the color.
    • Method Detail

      • getName

        public String getName()
        Returns:
        The name of this label.
      • getHexColor

        public String getHexColor()
        Returns:
        The hex color of this label (without the leading #).
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object