Package org.netbeans.server.uihandler.statistics.CoProjects

Examples of org.netbeans.server.uihandler.statistics.CoProjects.Sheet


    protected Sheet process(LogRecord rec) {
        ProjectOp op = ProjectOp.valueOf(rec);
        if (op != null) {
            ProjectChange ch = new ProjectChange(op, rec.getMillis());
            List<ProjectChange> list = Collections.singletonList(ch);
            return new Sheet(list);
        }
        return Sheet.EMPTY;
    }
View Full Code Here


    protected Sheet finishSessionUpload(
        String userId, int sessionNumber, boolean initialParse, Sheet d
    ) {
        // just keep the technology counts, no sequences of operations
        return new Sheet(d.getTechnologies());
    }
View Full Code Here

        List<ProjectChange> twoOp = two.getOperations();
       
        if (oneOp != null && twoOp != null) {

            if (oneOp.isEmpty()) {
                return new Sheet(twoOp);
            }
            if (twoOp.isEmpty()) {
                return new Sheet(oneOp);
            }

            List<ProjectChange> both = new ArrayList<ProjectChange>(oneOp);
            both.addAll(twoOp);
            return new Sheet(both);
        } else {
            return new Sheet(mergeCountMaps(one.getTechnologies(), two.getTechnologies()));
        }
    }
View Full Code Here

            int cnt = pref.getInt(k, 0);
            if (cnt > 0) {
                amounts.put(k, cnt);
            }
        }
        return new Sheet(amounts);
    }
View Full Code Here

        String longStr = str;
        for (int i = 0; i < 100; i++){
            longStr = longStr.concat(str);
        }
        techs.put(longStr, 1);
        Sheet sheet = new Sheet(techs);
        Preferences prefs = new DatabaseTestCase.TestPreferences();
        projects.write(prefs, sheet);

    }
View Full Code Here

TOP

Related Classes of org.netbeans.server.uihandler.statistics.CoProjects.Sheet

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.