Code example for LinkedList

0
         
        s_opClassToName.put(klass, key);
         
        List<Class<? extends AbstractOperation>> classes = s_opNameToClass.get(key);
        if (classes == null) {
            classes = new LinkedList<Class<? extends AbstractOperation>>();
            s_opNameToClass.put(key, classes);
        } 
        classes.add(klass);
    } 
     
    static public AbstractOperation reconstruct(Project project, JSONObject obj) {
        try { 
            String op = obj.getString("op");
            if (!op.contains("/")) {
                op = "core/" + op; // backward compatible
            } 
             
            List<Class<? extends AbstractOperation>> classes = s_opNameToClass.get(op);
            if (classes != null && classes.size() > 0) {