public ForEachIterator(LongSet map) { _index = _tSafeIndex = map.getLastFreeIndex(); if (map._size == 0) { _index = _tSafeIndex + 1; } _tSet = map._set; _k = _tFv = map._freeValue; }
/** 获取key对应set */ public LongSet getKeySet() { if (_size == 0) { return(new LongSet()); } LongSet re = new LongSet(capacity()); re.copyBase(this); re.setFreeValue(_freeValue); Array.Copy(_set, 0, re.getKeys(), 0, _set.Length); return(re); }