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

Examples of com.gs.collections.impl.map.mutable.primitive.FloatByteHashMap$KeysView


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

    ImmutableFloatByteHashMap(FloatByteMap delegate)
    {
        this.delegate = new FloatByteHashMap(delegate);
    }
View Full Code Here


        return this.delegate.asLazy();
    }

    public ImmutableFloatByteMap newWithKeyValue(float key, byte value)
    {
        MutableFloatByteMap map = new FloatByteHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableFloatByteMap newWithoutKey(float key)
    {
        MutableFloatByteMap map = new FloatByteHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableFloatByteMap newWithoutAllKeys(FloatIterable keys)
    {
        MutableFloatByteMap map = new FloatByteHashMap(this.size());
        map.putAll(this);
        FloatIterator iterator = keys.floatIterator();
        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();
            MutableFloatByteMap deserializedMap = new FloatByteHashMap();

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

            this.map = deserializedMap;
        }
View Full Code Here

    }

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

                : new FloatByteHashMap().toImmutable();
    }

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

TOP

Related Classes of com.gs.collections.impl.map.mutable.primitive.FloatByteHashMap$KeysView

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.