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

Examples of com.gs.collections.impl.map.mutable.primitive.DoubleShortHashMap$SentinelValues


    }

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


                : new DoubleShortHashMap().toImmutable();
    }

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

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

    ImmutableDoubleShortHashMap(DoubleShortMap delegate)
    {
        this.delegate = new DoubleShortHashMap(delegate);
    }
View Full Code Here

        return this.delegate.asLazy();
    }

    public ImmutableDoubleShortMap newWithKeyValue(double key, short value)
    {
        MutableDoubleShortMap map = new DoubleShortHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableDoubleShortMap newWithoutKey(double key)
    {
        MutableDoubleShortMap map = new DoubleShortHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableDoubleShortMap newWithoutAllKeys(DoubleIterable keys)
    {
        MutableDoubleShortMap map = new DoubleShortHashMap(this.size());
        map.putAll(this);
        DoubleIterator iterator = keys.doubleIterator();
        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();
            MutableDoubleShortMap deserializedMap = new DoubleShortHashMap();

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

            this.map = deserializedMap;
        }
View Full Code Here

TOP

Related Classes of com.gs.collections.impl.map.mutable.primitive.DoubleShortHashMap$SentinelValues

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.