Beispiel #1
0
        public void Increment(T key)
        {
            MutableInteger count = get(key);

            if (count == null)
            {
                MutableInteger newCount = new MutableInteger();
                newCount.Value = 1;
                counts.Add(key, newCount);
            }
            else
            {
                count.Increment();
            }
        }