Example usage for org.joda.time MonthDay parse

List of usage examples for org.joda.time MonthDay parse

Introduction

In this page you can find the example usage for org.joda.time MonthDay parse.

Prototype

@FromString
public static MonthDay parse(String str) 

Source Link

Document

Parses a MonthDay from the specified string.

Usage

From source file:MonthDayTypeAdapter.java

License:Apache License

@Override
public MonthDay read(JsonReader in) throws IOException {
    if (in.peek() == JsonToken.NULL) {
        in.nextNull();//from   w  w w.java2 s . co  m
        return null;
    }
    return MonthDay.parse(in.nextString());
}

From source file:org.apereo.portal.io.xml.eventaggr.EventAggregationConfigurationImporterExporter.java

License:Apache License

protected List<QuarterDetail> convertQuarterDetail(List<ExternalQuarterDetail> externalQuarterDetails) {
    final List<QuarterDetail> quarterDetails = new ArrayList<QuarterDetail>(4);
    for (final ExternalQuarterDetail externalQuarterDetail : externalQuarterDetails) {
        quarterDetails.add(new QuarterDetailImpl(MonthDay.parse(externalQuarterDetail.getStart()),
                MonthDay.parse(externalQuarterDetail.getEnd()), externalQuarterDetail.getId()));
    }//from   w  ww .  j a  va  2s .c  om
    return quarterDetails;
}

From source file:org.apereo.portal.io.xml.eventaggr.ExternalQuarterDetailComparator.java

License:Apache License

@Override
protected MonthDay getComparable(ExternalQuarterDetail o) {
    return MonthDay.parse(o.getStart());
}

From source file:org.jadira.usertype.dateandtime.joda.columnmapper.StringColumnMonthDayMapper.java

License:Apache License

@Override
public MonthDay fromNonNullValue(String s) {
    return MonthDay.parse(s);
}

From source file:org.springframework.format.datetime.joda.MonthDayFormatter.java

License:Apache License

@Override
public MonthDay parse(String text, Locale locale) throws ParseException {
    return MonthDay.parse(text);
}