Code example for TreeMap

Methods: values

0
result = res;
    } 
    public ArrayList<Diagnose> getDiagSummary()
    { 
        TreeMap diags = new TreeMap();
        Diagnose diag;
        for(int i=0; i<visits.size();i++)
            for(int y=0;y<visits.get(i).size(); y++)
            { 
                if(visits.get(i).get(y) instanceof Diagnose)
                { 
                  diag =   (Diagnose)visits.get(i).get(y);
                  if(diag != null && diag.getName() != null)
                  if(!diags.containsKey(diag.getName()) || !diag.isPredv())
                     diags.put(diag.getName(), diag);
                } 
            } 
         
        ArrayList<Diagnose> arrDiag = new ArrayList<Diagnose>(diags.values());
 
        return arrDiag;
    } 
    public ArrayList<Drug> getDrugSummary()
    {