Class TableAppender.Cell

java.lang.Object
org.apache.sis.io.TableAppender.Cell
Enclosing class:
TableAppender

private static final class TableAppender.Cell extends Object
A class wrapping a cell content and its text alignment. This class if for internal use only.
Since:
0.3
Version:
0.3
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) byte
    The alignment for text inside the cell.
    (package private) final char
    The fill character, used for filling space inside the cell.
    (package private) final String
    The text to write inside the cell.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Cell(String text, byte alignment, char fill)
    Returns a new cell wrapping the specified string with the specified alignment and fill character.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) TableAppender.Cell
    substring(int lower)
    Returns a new cell which contains substring of this cell.
    Returns the cell content.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • text

      final String text
      The text to write inside the cell.
    • alignment

      byte alignment
      The alignment for text inside the cell.
    • fill

      final char fill
      The fill character, used for filling space inside the cell.
  • Constructor Details

    • Cell

      Cell(String text, byte alignment, char fill)
      Returns a new cell wrapping the specified string with the specified alignment and fill character.
  • Method Details

    • substring

      TableAppender.Cell substring(int lower)
      Returns a new cell which contains substring of this cell.
    • toString

      public String toString()
      Returns the cell content.
      Overrides:
      toString in class Object