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

Examples of com.gs.collections.impl.map.mutable.primitive.ByteCharHashMap$KeySet


    }

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


                : new ByteCharHashMap().toImmutable();
    }

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

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

    ImmutableByteCharHashMap(ByteCharMap delegate)
    {
        this.delegate = new ByteCharHashMap(delegate);
    }
View Full Code Here

        return this.delegate.asLazy();
    }

    public ImmutableByteCharMap newWithKeyValue(byte key, char value)
    {
        MutableByteCharMap map = new ByteCharHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableByteCharMap newWithoutKey(byte key)
    {
        MutableByteCharMap map = new ByteCharHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableByteCharMap newWithoutAllKeys(ByteIterable keys)
    {
        MutableByteCharMap map = new ByteCharHashMap(this.size());
        map.putAll(this);
        ByteIterator iterator = keys.byteIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

        }

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

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

            this.map = deserializedMap;
        }
View Full Code Here

TOP

Related Classes of com.gs.collections.impl.map.mutable.primitive.ByteCharHashMap$KeySet

Copyright © 2018 www.massapicom. 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.