Examples of CharLongHashMap


Examples of com.gs.collections.impl.map.mutable.primitive.CharLongHashMap

    }

    public ImmutableCharLongMap select(CharLongPredicate predicate)
    {
        return predicate.accept(this.key1, this.value1) ? CharLongHashMap.newWithKeysValues(this.key1, this.value1).toImmutable()
                : new CharLongHashMap().toImmutable();
    }
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.CharLongHashMap

                : new CharLongHashMap().toImmutable();
    }

    public ImmutableCharLongMap reject(CharLongPredicate predicate)
    {
        return predicate.accept(this.key1, this.value1) ? new CharLongHashMap().toImmutable()
                : CharLongHashMap.newWithKeysValues(this.key1, this.value1).toImmutable();
    }
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.CharLongHashMap

    private static final long serialVersionUID = 1L;
    private final MutableCharLongMap delegate;

    ImmutableCharLongHashMap(CharLongMap delegate)
    {
        this.delegate = new CharLongHashMap(delegate);
    }
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.CharLongHashMap

        return this.delegate.asLazy();
    }

    public ImmutableCharLongMap newWithKeyValue(char key, long value)
    {
        MutableCharLongMap map = new CharLongHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.CharLongHashMap

        return map.toImmutable();
    }

    public ImmutableCharLongMap newWithoutKey(char key)
    {
        MutableCharLongMap map = new CharLongHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.CharLongHashMap

        return map.toImmutable();
    }

    public ImmutableCharLongMap newWithoutAllKeys(CharIterable keys)
    {
        MutableCharLongMap map = new CharLongHashMap(this.size());
        map.putAll(this);
        CharIterator iterator = keys.charIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

Examples of com.gs.collections.impl.map.mutable.primitive.CharLongHashMap

        }

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

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

            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.