Examples of MutableLongCharMap


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

        return this.delegate.asLazy();
    }

    public ImmutableLongCharMap newWithKeyValue(long key, char value)
    {
        MutableLongCharMap map = new LongCharHashMap(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.MutableLongCharMap

        return map.toImmutable();
    }

    public ImmutableLongCharMap newWithoutKey(long key)
    {
        MutableLongCharMap map = new LongCharHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }
View Full Code Here

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

        return map.toImmutable();
    }

    public ImmutableLongCharMap newWithoutAllKeys(LongIterable keys)
    {
        MutableLongCharMap map = new LongCharHashMap(this.size());
        map.putAll(this);
        LongIterator iterator = keys.longIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

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

        }

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

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

            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.