Class DateTimeParameter


  • public final class DateTimeParameter
    extends Parameter
    A parameter for formatting date/time arguments.

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

    • Method Detail

      • of

        public static Parameter of​(DateTimeFormat format,
                                   FormatOptions options,
                                   int index)
        Returns a Parameter representing the given formatting options of the specified date/time formatting character. Note that a cached value may be returned.
        Parameters:
        format - specifier for the specific date/time formatting to be applied.
        options - the validated formatting options.
        index - the argument index.
        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