Package org.netbeans.server.uihandler.statistics.Technology

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


    protected Sheet process(LogRecord rec) {
        ProjectOp projectOp = ProjectOp.valueOf(rec);
        if (projectOp != null) {
            Union2<ProjectOp, TechOp> union = Union2.createFirst(projectOp);
            List<Union2<ProjectOp, TechOp>> list = Collections.singletonList(union);
            return new Sheet(list);
        }
       
        TechOp techOp = TechOp.valueOf(rec);
        if (techOp != null) {
            Union2<ProjectOp, TechOp> union = Union2.createSecond(techOp);
            List<Union2<ProjectOp, TechOp>> list = Collections.singletonList(union);
            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<Union2<ProjectOp, TechOp>> twoOp = two.getOperations();
       
        if (oneOp != null && twoOp != null) {

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

            List<Union2<ProjectOp, TechOp>> both = new ArrayList<Union2<ProjectOp, TechOp>>(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

TOP

Related Classes of org.netbeans.server.uihandler.statistics.Technology.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.