001    package org.kuali.maven.plugins.graph.tree;
002    
003    import java.util.HashMap;
004    
005    public class Tracker extends HashMap<String, Integer> {
006    
007        private static final long serialVersionUID = -2649198262211508724L;
008    
009        public void increment(String s) {
010            if (get(s) == null) {
011                put(s, 1);
012            } else {
013                put(s, get(s) + 1);
014            }
015        }
016    
017    }