Package de.timefinder.data.util

Examples of de.timefinder.data.util.ResourceForTest


     * transforms a List<List<Assignment>> into a map of Entry<Resource, List<Assignment>>
     */
    public Map<Resource, Set<Assignment>> newResources(List<Assignment>... resources) {
        Map<Resource, Set<Assignment>> result = FastMap.newInstance();
        for (List<Assignment> assignments : resources) {
            ResourceForTest res = new ResourceForTest();
            Set<Assignment> set = FastSet.newInstance();
            for (Assignment ass : assignments) {
                set.add(ass);
                res.getEvents().add(ass.getEvent());
            }
            result.put(res, set);
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of de.timefinder.data.util.ResourceForTest

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.