Package name.pehl.karaka.shared.model

Examples of name.pehl.karaka.shared.model.Day


            DateMidnight startOfWeek = currentWeek.weekOfWeekyear().roundFloorCopy();
            DateMidnight endOfWeek = startOfWeek.plusWeeks(1);
            for (DateMidnight currentDate = startOfWeek; currentDate.isBefore(endOfWeek);
                    currentDate = currentDate.plusDays(1))
            {
                Day day = new Day(currentDate.getYear(), currentDate.getMonthOfYear(), currentDate.getDayOfMonth());
                week.add(day);
                for (Activity activity : activities)
                {
                    Time start = activity.getStart();
                    if (currentDate.equals(start.toDateMidnight()) && date.getMonthOfYear() == start.getMonth())
                    {
                        day.add(activityConverter.toModel(activity));
                    }
                }
            }
        }
        return weeks;
View Full Code Here


        DateMidnight startOfWeek = date.weekOfWeekyear().roundFloorCopy();
        DateMidnight endOfWeek = startOfWeek.plusWeeks(1);
        for (DateMidnight currentDate = startOfWeek; currentDate.isBefore(endOfWeek);
                currentDate = currentDate.plusDays(1))
        {
            Day day = new Day(currentDate.getYear(), currentDate.getMonthOfYear(), currentDate.getDayOfMonth());
            days.add(day);
            for (Activity activity : activities)
            {
                Time start = activity.getStart();
                if (currentDate.equals(start.toDateMidnight()))
                {
                    day.add(activityConverter.toModel(activity));
                }
            }
        }
        return days;
    }
View Full Code Here

TOP

Related Classes of name.pehl.karaka.shared.model.Day

Copyright © 2018 www.massapicom. 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.