Examples of MutableDoubleShortMap


Examples of com.gs.collections.api.map.primitive.MutableDoubleShortMap

        return this.delegate.asLazy();
    }

    public ImmutableDoubleShortMap newWithKeyValue(double key, short value)
    {
        MutableDoubleShortMap map = new DoubleShortHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }
View Full Code Here

Examples of com.gs.collections.api.map.primitive.MutableDoubleShortMap

        return map.toImmutable();
    }

    public ImmutableDoubleShortMap newWithoutKey(double key)
    {
        MutableDoubleShortMap map = new DoubleShortHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }
View Full Code Here

Examples of com.gs.collections.api.map.primitive.MutableDoubleShortMap

        return map.toImmutable();
    }

    public ImmutableDoubleShortMap newWithoutAllKeys(DoubleIterable keys)
    {
        MutableDoubleShortMap map = new DoubleShortHashMap(this.size());
        map.putAll(this);
        DoubleIterator iterator = keys.doubleIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

Examples of com.gs.collections.api.map.primitive.MutableDoubleShortMap

        }

        public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
        {
            int size = in.readInt();
            MutableDoubleShortMap deserializedMap = new DoubleShortHashMap();

            for (int i = 0; i < size; i++)
            {
                deserializedMap.put(in.readDouble(), in.readShort());
            }

            this.map = deserializedMap;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.