Beispiel #1
0
        public SMap <K, V> clone()
        {
            if (_size == 0)
            {
                return(new SMap <K, V>());
            }

            SMap <K, V> re = new SMap <K, V>(capacity());

            Array.Copy(_set, 0, re._set, 0, _set.Length);
            Array.Copy(_values, 0, re._values, 0, _values.Length);
            re._defaultKey   = _defaultKey;
            re._defaultValue = _defaultValue;
            re.copyBase(this);
            return(re);
        }