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

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


    public ImmutableFloatShortMap newWithKeyValue(float key, short value)
    {
        MutableFloatShortMap map = new FloatShortHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableFloatShortMap newWithoutKey(float key)
    {
        MutableFloatShortMap map = new FloatShortHashMap(this.size());
View Full Code Here


    public ImmutableFloatShortMap newWithoutKey(float key)
    {
        MutableFloatShortMap map = new FloatShortHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }

    public ImmutableFloatShortMap newWithoutAllKeys(FloatIterable keys)
    {
        MutableFloatShortMap map = new FloatShortHashMap(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.