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

Examples of com.gs.collections.impl.map.mutable.primitive.ByteByteHashMap$KeySetIterator


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

    ImmutableByteByteHashMap(ByteByteMap delegate)
    {
        this.delegate = new ByteByteHashMap(delegate);
    }
View Full Code Here


        return this.delegate.asLazy();
    }

    public ImmutableByteByteMap newWithKeyValue(byte key, byte value)
    {
        MutableByteByteMap map = new ByteByteHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableByteByteMap newWithoutKey(byte key)
    {
        MutableByteByteMap map = new ByteByteHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableByteByteMap newWithoutAllKeys(ByteIterable keys)
    {
        MutableByteByteMap map = new ByteByteHashMap(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();
            MutableByteByteMap deserializedMap = new ByteByteHashMap();

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

            this.map = deserializedMap;
        }
View Full Code Here

    }

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

                : new ByteByteHashMap().toImmutable();
    }

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

TOP

Related Classes of com.gs.collections.impl.map.mutable.primitive.ByteByteHashMap$KeySetIterator

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.