Class PlainRowFormatter


  • public class PlainRowFormatter
    extends RowFormatter
    Formats each row by just using the default formatting of an object. This results in a table with just one column, where the header is the name of the parameter.
    Since:
    0.10.0
    See Also:
    Table
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> formatRow​(java.lang.Object object)
      Generates a single row of the data table for the given object.
      java.util.List<java.lang.String> header()
      Generates the header row of the data table
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlainRowFormatter

        public PlainRowFormatter​(java.lang.Class<?> type,
                                 Table tableAnnotation,
                                 java.lang.String columnHeader,
                                 java.lang.annotation.Annotation[] annotations,
                                 FormatterConfiguration configuration,
                                 ObjectFormatter objectFormatter)
    • Method Detail

      • header

        public java.util.List<java.lang.String> header()
        Description copied from class: RowFormatter
        Generates the header row of the data table
        Specified by:
        header in class RowFormatter
      • formatRow

        public java.util.List<java.lang.String> formatRow​(java.lang.Object object)
        Description copied from class: RowFormatter
        Generates a single row of the data table for the given object. This method is called for each object of the input.
        Specified by:
        formatRow in class RowFormatter