Class GitIgnore.GitIgnoreSection

java.lang.Object
io.spring.initializr.generator.spring.scm.git.GitIgnore.GitIgnoreSection
All Implemented Interfaces:
Section
Enclosing class:
GitIgnore

public static class GitIgnore.GitIgnoreSection extends Object implements Section
Representation of a section of a .gitignore file.
  • Constructor Details

    • GitIgnoreSection

      public GitIgnoreSection(String name)
  • Method Details

    • add

      public void add(String... items)
    • getItems

      public LinkedList<String> getItems()
    • write

      public void write(PrintWriter writer)
      Description copied from interface: Section
      Write the content of the section to the specified writer.
      Specified by:
      write in interface Section
      Parameters:
      writer - the writer to use