Examples of adjustRight()


Examples of net.sourceforge.ganttproject.time.DateFrameable.adjustRight()

        }
        if (timeUnit instanceof DateFrameable) {
            DateFrameable df = (DateFrameable) timeUnit;
            int unitCount = 0;
            for (; startDate.before(endDate); unitCount++) {
                startDate = df.adjustRight(startDate);
            }
            result = new TaskLengthImpl(timeUnit, unitCount*sign);
        } else {
            throw new IllegalArgumentException("Time unit=" + timeUnit
                    + " is not date frameable");
View Full Code Here

Examples of net.sourceforge.ganttproject.time.gregorian.WeekFramerImpl.adjustRight()

                adjusted, adjustedSunday);
    }

    public void testAdjustRight() {
        WeekFramerImpl framer = new WeekFramerImpl();
        Date adjustedMonday = framer.adjustRight(newMonday());
        Date adjustedSunday = framer.adjustRight(newSunday());
        assertEquals(adjustedMonday, adjustedSunday);
        Calendar c = (Calendar) Calendar.getInstance().clone();
        c.setTime(adjustedMonday);
        assertEquals("Unexpected day of week", Calendar.MONDAY, c
View Full Code Here

Examples of net.sourceforge.ganttproject.time.gregorian.WeekFramerImpl.adjustRight()

    }

    public void testAdjustRight() {
        WeekFramerImpl framer = new WeekFramerImpl();
        Date adjustedMonday = framer.adjustRight(newMonday());
        Date adjustedSunday = framer.adjustRight(newSunday());
        assertEquals(adjustedMonday, adjustedSunday);
        Calendar c = (Calendar) Calendar.getInstance().clone();
        c.setTime(adjustedMonday);
        assertEquals("Unexpected day of week", Calendar.MONDAY, c
                .get(Calendar.DAY_OF_WEEK));
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.