Package com.activequant.utils

Examples of com.activequant.utils.TimeTools


    // TODO: have to replace this ParseException with some proper, meaningful
    // exception at one day.
    public List<TimeStamp> processTimeStampList(List<TimeStamp> timeStamps, Map<Parameter, Object> paramMap)
            throws InvalidDate8Time6Input {
        List<TimeStamp> ret = timeStamps;
        TimeTools tt = new TimeTools();
        // TODO: put into utility class.
        // check if we have a week-day only parameter
        if (paramMap.containsKey(Parameter.DAYRULE)) {
            if (paramMap.get(Parameter.DAYRULE) == DayRule.WEEKDAYS) {
                List<TimeStamp> tsTemp = new ArrayList<TimeStamp>();
                for (int i = 0; i < timeStamps.size(); i++) {
                    if (tt.isWeekday(timeStamps.get(i)))
                        tsTemp.add(timeStamps.get(i));
                }
                ret = tsTemp;
            }
        }
View Full Code Here

TOP

Related Classes of com.activequant.utils.TimeTools

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.