Lines Matching refs:formatter
298 * Obtains an instance of {@code MonthDay} from a text string using a specific formatter.
300 * The text is parsed using the formatter, returning a month-day.
303 * @param formatter the formatter to use, not null
307 public static MonthDay parse(CharSequence text, DateTimeFormatter formatter) {
308 Objects.requireNonNull(formatter, "formatter");
309 return formatter.parse(text, MonthDay::from);
636 * Formats this month-day using the specified formatter.
638 * This month-day will be passed to the formatter to produce a string.
640 * @param formatter the formatter to use, not null
644 public String format(DateTimeFormatter formatter) {
645 Objects.requireNonNull(formatter, "formatter");
646 return formatter.format(this);