Class FormattableArgument

  • All Implemented Interfaces:
    Formattable

    public class FormattableArgument
    extends Object
    implements Formattable
    Wrapper class to make formattable any argument used in the license template. The formatter behavior is delegated to a specific class on "type" basis using the PluginService
    Author:
    bollini
    See Also:
    Formattable, LicenseArgumentFormatter
    • Constructor Detail

      • FormattableArgument

        public FormattableArgument​(String type,
                                   Object object)
    • Method Detail

      • formatTo

        public void formatTo​(Formatter formatter,
                             int flags,
                             int width,
                             int precision)
        Specified by:
        formatTo in interface Formattable