Class JustificationImpl

    • Constructor Detail

      • JustificationImpl

        public JustificationImpl​(String format)
        The constructor.
        Parameters:
        format - is the justification-format.
    • Method Detail

      • justify

        public String justify​(CharSequence value)
        Description copied from interface: Justification
        This method applies the justification to the given value and returns the result.
        Specified by:
        justify in interface Justification
        Parameters:
        value - is the string to justify.
        Returns:
        the justified string.
      • justify

        public void justify​(CharSequence value,
                            Appendable target)
        Description copied from interface: Justification
        This method applies the justification to the given value and appends the result to the given target.
        Specified by:
        justify in interface Justification
        Parameters:
        value - is the string to justify.
        target - is where to append the justified data.