public EntryIterator(CharObjectMap <V> map) { _index = _tSafeIndex = map.getLastFreeIndex(); if (map._size == 0) { _index = _tSafeIndex + 1; } _tSet = map._set; _tValues = map._values; _entry = new Entry <V>(); _entry.key = _tFv = map._freeValue; }
public ForEachIterator(CharObjectMap <V> map) { _index = _tSafeIndex = map.getLastFreeIndex(); if (map._size == 0) { _index = _tSafeIndex + 1; } _k = _tFv = map._freeValue; _tSet = map._set; _tValues = map._values; _v = default(V); }
public CharObjectMap <V> clone() { if (_size == 0) { return(new CharObjectMap <V>()); } CharObjectMap <V> re = new CharObjectMap <V>(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(CharObjectMap <V> map) { _map = map; }