Skip to content

Shryne/ConsoleTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConsoleTable

coverage

This little libary contains some classes to create and show a table inside the console, as I sometimes need to view some of my results inside a table, but without taking this as a feature for the later user. As this library is not intented to be used inside the released project or at least not inside a loop, it's not optimized for this purpose.

Characteristics

  • Everything is immutable
  • Everything uses interfaces
  • Nothing is static
  • No implementation inheritance is used
  • How to use it?

    If you intend to use it as a "one liner", you could write it like this:

    new Table(
            2,
            "Name", "Age",
            "Steve", "15"
    ).printTo(System.out::println);

    result:

     Name  | Age
    ============= 
     Steve | 15  
    

    More complex example:

    new Table(
            2,
            new Cell(
                    new Text(
                            new Right(),
                            new 
                    )
            )
    )

    About

    No description, website, or topics provided.

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published