Class SimpleParameter


  • public final class SimpleParameter
    extends Parameter
    A simple, single argument, parameter which can format arguments according to the rules specified by FormatChar.

    This class is immutable and thread safe, as per the Parameter contract.

    • Method Detail

      • of

        public static SimpleParameter of​(int index,
                                         FormatChar formatChar,
                                         FormatOptions options)
        Returns a Parameter representing the given formatting options of the specified formatting character. Note that a cached value may be returned.
        Parameters:
        index - the index of the argument to be processed.
        formatChar - the basic formatting type.
        options - additional formatting options.
        Returns:
        the immutable, thread safe parameter instance.
      • getFormat

        public String getFormat()
        Description copied from class: Parameter
        Returns the printf format string specified for this parameter (eg, "%d" or "%tc").
        Specified by:
        getFormat in class Parameter