Пример #1
0
 public virtual com.cpkf.yyjd.tools.util.collection.Accumulator <int> GetStatistics()
 {
     com.cpkf.yyjd.tools.util.collection.Accumulator <int> acc = new com.cpkf.yyjd.tools.util.collection.Accumulator <int>();
     foreach (int v in map.Values)
     {
         acc.AddKey(v);
     }
     return(acc);
 }
Пример #2
0
 public virtual com.cpkf.yyjd.tools.util.collection.Accumulator <T> Clone()
 {
     com.cpkf.yyjd.tools.util.collection.Accumulator <T> clone = new com.cpkf.yyjd.tools.util.collection.Accumulator <T>();
     clone.map = new MyDictionary <T, int>();
     foreach (T key in this.map.Keys)
     {
         clone.map[key] = this.map[key];
     }
     clone.allCount = allCount;
     return(clone);
 }