Package net.objectlab.kit.datecalc.common

Examples of net.objectlab.kit.datecalc.common.WorkingWeek


            DateTimeConstants.FRIDAY,
            DateTimeConstants.SATURDAY
        };
       
        //Load the TradingWeek
        WorkingWeek ww = new WorkingWeek();
        for(int day : days) {
            ww = ww.withWorkingDayFromCalendar(true, day);
        }
        
        TradingWeek tradingWeek = new TradingWeek(ww.getWorkingDays());
        for(int i = 0;i < days.length;i++) {
            int day = days[i];
            tradingWeek.addTradingSession(new TradingSession(day, day,
                new LocalTime(8, 30, 0, 0), new LocalTime(15, 30, 0, 0)));
        }
View Full Code Here


         *
         * @return  a "raw" {@code TradingWeek}.
         */
        private TradingWeek createRawTradingWeek() {
            //Load the TradingWeek
            WorkingWeek ww = new WorkingWeek();
            for(int day : days) {
                ww = ww.withWorkingDayFromCalendar(true, day);
            }
            
            TradingWeek tradingWeek = new TradingWeek(ww.getWorkingDays());           
            return tradingWeek;
        }
View Full Code Here

TOP

Related Classes of net.objectlab.kit.datecalc.common.WorkingWeek

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.