/** 转换intint字典 */ public static IntIntMap parseIntIntMapByDIntArr(DIntData[] arr) { IntIntMap map = new IntIntMap(arr.Length); foreach (DIntData v in arr) { map.put(v.key, v.value); } return(map); }
public EntryIterator(IntIntMap map) { _index = _tSafeIndex = map.getLastFreeIndex(); if (map._size == 0) { _index = _tSafeIndex + 1; } _tSet = map._set; _tValues = map._values; _entry = new Entry(); _entry.key = _tFv = map._freeValue; }
public IntIntMap clone() { if (_size == 0) { return(new IntIntMap()); } IntIntMap re = new IntIntMap(capacity()); Array.Copy(_set, 0, re._set, 0, _set.Length); Array.Copy(_values, 0, re._values, 0, _values.Length); re.copyBase(this); re._freeValue = _freeValue; return(re); }
public EntrySet(IntIntMap map) { _map = map; }