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

Examples of com.gs.collections.impl.map.mutable.primitive.LongDoubleHashMap$KeyValuesView$InternalKeyValuesIterator


    }

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


                : new LongDoubleHashMap().toImmutable();
    }

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

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

    ImmutableLongDoubleHashMap(LongDoubleMap delegate)
    {
        this.delegate = new LongDoubleHashMap(delegate);
    }
View Full Code Here

        return this.delegate.asLazy();
    }

    public ImmutableLongDoubleMap newWithKeyValue(long key, double value)
    {
        MutableLongDoubleMap map = new LongDoubleHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableLongDoubleMap newWithoutKey(long key)
    {
        MutableLongDoubleMap map = new LongDoubleHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableLongDoubleMap newWithoutAllKeys(LongIterable keys)
    {
        MutableLongDoubleMap map = new LongDoubleHashMap(this.size());
        map.putAll(this);
        LongIterator iterator = keys.longIterator();
        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();
            MutableLongDoubleMap deserializedMap = new LongDoubleHashMap();

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

            this.map = deserializedMap;
        }
View Full Code Here

TOP

Related Classes of com.gs.collections.impl.map.mutable.primitive.LongDoubleHashMap$KeyValuesView$InternalKeyValuesIterator

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.