Package com.gs.collections.api.map.primitive

Examples of com.gs.collections.api.map.primitive.MutableFloatDoubleMap.toImmutable()


    public ImmutableFloatDoubleMap newWithKeyValue(float key, double value)
    {
        MutableFloatDoubleMap map = new FloatDoubleHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableFloatDoubleMap newWithoutKey(float key)
    {
        MutableFloatDoubleMap map = new FloatDoubleHashMap(this.size());
View Full Code Here


    public ImmutableFloatDoubleMap newWithoutKey(float key)
    {
        MutableFloatDoubleMap map = new FloatDoubleHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }

    public ImmutableFloatDoubleMap newWithoutAllKeys(FloatIterable keys)
    {
        MutableFloatDoubleMap map = new FloatDoubleHashMap(this.size());
View Full Code Here

        FloatIterator iterator = keys.floatIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }

    public int size()
    {
        return this.delegate.size();
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.