Examples of MonthDay


Examples of org.apache.axis2.databinding.types.MonthDay

    public static YearMonth convertTogYearMonth(String s) {
        return new YearMonth(s);
    }

    public static MonthDay convertTogMonthDay(String s) {
        return new MonthDay(s);
    }
View Full Code Here

Examples of org.apache.axis2.databinding.types.MonthDay

    public static MonthDay convertToGMonthDay(String s) {
        if ((s == null) || s.equals("")){
            return null;
        }
        return new MonthDay(s);
    }
View Full Code Here

Examples of org.apache.axis2.databinding.types.MonthDay

    public static MonthDay convertToGMonthDay(String s) {
        if ((s == null) || s.equals("")){
            return null;
        }
        return new MonthDay(s);
    }
View Full Code Here

Examples of org.apache.axis2.databinding.types.MonthDay

    public static MonthDay convertToGMonthDay(String s) {
        if ((s == null) || s.equals("")){
            return null;
        }
        return new MonthDay(s);
    }
View Full Code Here

Examples of org.apache.axis2.databinding.types.MonthDay

    public static MonthDay convertToGMonthDay(String s) {
        if ((s == null) || s.equals("")){
            return null;
        }
        return new MonthDay(s);
    }
View Full Code Here

Examples of org.joda.time.MonthDay

            protected void callWithoutResult() {
                final List<QuarterDetail> quartersDetails = eventAggregationManagementDao.getQuartersDetails();
                EventDateTimeUtils.validateQuarters(quartersDetails);
               
                eventAggregationManagementDao.setQuarterDetails(Arrays.<QuarterDetail>asList(
                        new QuarterDetailImpl(new MonthDay(5, 1), new MonthDay(8, 1), 0),
                        new QuarterDetailImpl(new MonthDay(8, 1), new MonthDay(11, 1), 1),
                        new QuarterDetailImpl(new MonthDay(11, 1), new MonthDay(2, 1), 2),
                        new QuarterDetailImpl(new MonthDay(2, 1), new MonthDay(5, 1), 3)
                    ));
            }
        });
    }
View Full Code Here

Examples of org.joda.time.MonthDay

        return EventDateTimeUtils.createStandardQuarters();
    }

    protected List<QuarterDetail> createOffsetQuarters() {
        return ImmutableList.<QuarterDetail>of(
                new QuarterDetailImpl(new MonthDay(5, 1), new MonthDay(8, 1), 0),
                new QuarterDetailImpl(new MonthDay(8, 1), new MonthDay(11, 1), 1),
                new QuarterDetailImpl(new MonthDay(11, 1), new MonthDay(2, 1), 2),
                new QuarterDetailImpl(new MonthDay(2, 1), new MonthDay(5, 1), 3)
                );
    }
View Full Code Here

Examples of org.joda.time.MonthDay

        }
       
        final List<QuarterDetail> sortedQuarters = new ArrayList<QuarterDetail>(quarters);
        Collections.sort(sortedQuarters);
       
        MonthDay previousEnd = sortedQuarters.get(3).getEnd();
        final Iterator<QuarterDetail> itr = sortedQuarters.iterator();
        for (int i = 0; i < 4; i++) {
            final QuarterDetail q = itr.next();
            if (i != q.getQuarterId()) {
                throw new IllegalArgumentException("Quarter " + i + " has an illegal id of " + q.getQuarterId());
View Full Code Here

Examples of org.joda.time.MonthDay

    /**
     * Create a new set of quarter details in the standard 1/1-4/1, 4/1-7/1, 7/1-10/1, 10/1-1/1 arrangement
     */
    public static List<QuarterDetail> createStandardQuarters() {
        return ImmutableList.<QuarterDetail>of(
                new QuarterDetailImpl(new MonthDay(1, 1), new MonthDay(4, 1), 0),
                new QuarterDetailImpl(new MonthDay(4, 1), new MonthDay(7, 1), 1),
                new QuarterDetailImpl(new MonthDay(7, 1), new MonthDay(10, 1), 2),
                new QuarterDetailImpl(new MonthDay(10, 1), new MonthDay(1, 1), 3)
                );
    }
View Full Code Here

Examples of org.joda.time.MonthDay

        return this.start;
    }
   
    @Override
    public DateMidnight getStartDateMidnight(ReadableInstant instant) {
        final MonthDay instantMonthDay = new MonthDay(instant);
       
        //If the quarter wraps a year boundary AND
        //   the instant MonthDay is before the start AND
        //   the end is after the instant MonthDay
        // then shift the start year back by one to deal with the year boundary
        if (this.end.isBefore(this.start) && instantMonthDay.isBefore(this.start) && this.end.isAfter(instantMonthDay)) {
            return this.start.toDateTime(new DateTime(instant).minusYears(1)).toDateMidnight();
        }
       
        return this.start.toDateTime(instant).toDateMidnight();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.