Class Labels.Smart

    • Constructor Detail

      • Smart

        public Smart​(Labels lbl)
        Public ctor.
        Parameters:
        lbl - Labels
    • Method Detail

      • contains

        public boolean contains​(String name)
        Label exists?
        Parameters:
        name - Name of the label
        Returns:
        TRUE if it exists
      • createOrGet

        public Label createOrGet​(String name)
                          throws IOException
        Create or get label.
        Parameters:
        name - Name of the label
        Returns:
        Label found or created
        Throws:
        IOException - If there is any I/O problem
      • createOrGet

        public Label createOrGet​(String name,
                                 String color)
                          throws IOException
        Create or get label (with this explicit color).
        Parameters:
        name - Name of the label
        color - Color to set (or modify)
        Returns:
        Label found or created
        Throws:
        IOException - If there is any I/O problem
        Since:
        0.7
      • repo

        public Repo repo()
        Description copied from interface: Labels
        The repo we're in.
        Specified by:
        repo in interface Labels
        Returns:
        Repo
      • get

        public Label get​(String name)
        Description copied from interface: Labels
        Get a label by name.
        Specified by:
        get in interface Labels
        Parameters:
        name - The name of it
        Returns:
        The label
        See Also:
        Get a single label