Enum GHRepository.Visibility

    • Enum Constant Detail

      • UNKNOWN

        public static final GHRepository.Visibility UNKNOWN
        Placeholder for unexpected data values. This avoids throwing exceptions during data binding or reading when the list of allowed values returned from GitHub is expanded. Do not pass this value to any methods. If this value is returned during a request, check the log output and report an issue for the missing value.
    • Method Detail

      • values

        public static GHRepository.Visibility[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GHRepository.Visibility c : GHRepository.Visibility.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GHRepository.Visibility valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null