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

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


    }

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


                : new IntByteHashMap().toImmutable();
    }

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

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

    ImmutableIntByteHashMap(IntByteMap delegate)
    {
        this.delegate = new IntByteHashMap(delegate);
    }
View Full Code Here

        return this.delegate.asLazy();
    }

    public ImmutableIntByteMap newWithKeyValue(int key, byte value)
    {
        MutableIntByteMap map = new IntByteHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableIntByteMap newWithoutKey(int key)
    {
        MutableIntByteMap map = new IntByteHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableIntByteMap newWithoutAllKeys(IntIterable keys)
    {
        MutableIntByteMap map = new IntByteHashMap(this.size());
        map.putAll(this);
        IntIterator iterator = keys.intIterator();
        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();
            MutableIntByteMap deserializedMap = new IntByteHashMap();

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

            this.map = deserializedMap;
        }
View Full Code Here

TOP

Related Classes of com.gs.collections.impl.map.mutable.primitive.IntByteHashMap$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.