@Override public YearMonth parse(String text, Locale locale) throws ParseException { return YearMonth.parse(text); }
@Override public YearMonth parse(String text, Locale locale) throws ParseException { return YearMonth.parse(text); }
/** * Parses a {@code YearMonth} from the specified string. * <p> * This uses {@link ISODateTimeFormat#localDateParser()}. * * @param str the string to parse, not null * @since 2.0 */ @FromString public static YearMonth parse(String str) { return parse(str, ISODateTimeFormat.localDateParser()); }
/** * Parses a {@code YearMonth} from the specified string. * <p> * This uses {@link ISODateTimeFormat#localDateParser()}. * * @param str the string to parse, not null * @since 2.0 */ @FromString public static YearMonth parse(String str) { return parse(str, ISODateTimeFormat.localDateParser()); }
/** * Parses a {@code YearMonth} from the specified string. * <p> * This uses {@link ISODateTimeFormat#localDateParser()}. * * @param str the string to parse, not null * @since 2.0 */ @FromString public static YearMonth parse(String str) { return parse(str, ISODateTimeFormat.localDateParser()); }
@Override public YearMonth deserialize(final JsonParser p, final DeserializationContext ctxt) throws IOException { JsonToken t = p.getCurrentToken(); if (t == JsonToken.VALUE_STRING) { String str = p.getText().trim(); if (str.isEmpty()) { return null; } return YearMonth.parse(str, _format.createParser(ctxt)); } return (YearMonth) ctxt.handleUnexpectedToken(handledType(), p.getCurrentToken(), p, "expected JSON String"); } }
@Override protected YearMonth convert2Target(DateTimeFormatter formatter, String obj) { return YearMonth.parse(obj, formatter); }
@Override public YearMonth fromNonNullValue(String s) { return YearMonth.parse(s); }
@Override public YearMonth parse(String text, Locale locale) throws ParseException { return YearMonth.parse(text); }
/** * Parses a {@code YearMonth} from the specified string. * <p> * This uses {@link ISODateTimeFormat#localDateParser()}. * * @param str the string to parse, not null * @since 2.0 */ @FromString public static YearMonth parse(String str) { return parse(str, ISODateTimeFormat.localDateParser()); }
/** * Parses a {@code YearMonth} from the specified string. * <p> * This uses {@link ISODateTimeFormat#localDateParser()}. * * @param str the string to parse, not null * @since 2.0 */ @FromString public static YearMonth parse(String str) { return parse(str, ISODateTimeFormat.localDateParser()); }
/** * Parses a {@code YearMonth} from the specified string. * <p> * This uses {@link ISODateTimeFormat#localDateParser()}. * * @param str the string to parse, not null * @since 2.0 */ @FromString public static YearMonth parse(String str) { return parse(str, ISODateTimeFormat.localDateParser()); }
/** * Parses a {@code YearMonth} from the specified string. * <p> * This uses {@link ISODateTimeFormat#localDateParser()}. * * @param str the string to parse, not null * @since 2.0 */ @FromString public static YearMonth parse(String str) { return parse(str, ISODateTimeFormat.localDateParser()); }
/** * Parses a {@code YearMonth} from the specified string. * <p> * This uses {@link ISODateTimeFormat#localDateParser()}. * * @param str the string to parse, not null * @since 2.0 */ @FromString public static YearMonth parse(String str) { return parse(str, ISODateTimeFormat.localDateParser()); }
/** * Parses a {@code YearMonth} from the specified string. * <p> * This uses {@link ISODateTimeFormat#localDateParser()}. * * @param str the string to parse, not null * @since 2.0 */ @FromString public static YearMonth parse(String str) { return parse(str, ISODateTimeFormat.localDateParser()); }
/** * Parses a {@code YearMonth} from the specified string. * <p> * This uses {@link ISODateTimeFormat#localDateParser()}. * * @param str the string to parse, not null * @since 2.0 */ @FromString public static YearMonth parse(String str) { return parse(str, ISODateTimeFormat.localDateParser()); }
@Override public YearMonth convertValue(String value, Type type) { DateTimeFormatter formatter = hasDash(value) ? getFormatterWithDash(value) : getFormatterWithSlash(value); return YearMonth.parse(value, formatter); }