Package com.gs.collections.impl.map.mutable.primitive

Examples of com.gs.collections.impl.map.mutable.primitive.ShortShortHashMap.toImmutable()


    public ImmutableShortShortMap newWithKeyValue(short key, short value)
    {
        MutableShortShortMap map = new ShortShortHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }

    public ImmutableShortShortMap newWithoutKey(short key)
    {
        MutableShortShortMap map = new ShortShortHashMap(this.size());
View Full Code Here


    public ImmutableShortShortMap newWithoutKey(short key)
    {
        MutableShortShortMap map = new ShortShortHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }

    public ImmutableShortShortMap newWithoutAllKeys(ShortIterable keys)
    {
        MutableShortShortMap map = new ShortShortHashMap(this.size());
View Full Code Here

        ShortIterator iterator = keys.shortIterator();
        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.