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

Examples of com.gs.collections.impl.map.mutable.primitive.LongBooleanHashMap$InternalBooleanIterator


    }

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


                : new LongBooleanHashMap().toImmutable();
    }

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

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

    ImmutableLongBooleanHashMap(LongBooleanMap delegate)
    {
        this.delegate = new LongBooleanHashMap(delegate);
    }
View Full Code Here

        return this.delegate.asLazy();
    }

    public ImmutableLongBooleanMap newWithKeyValue(long key, boolean value)
    {
        MutableLongBooleanMap map = new LongBooleanHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableLongBooleanMap newWithoutKey(long key)
    {
        MutableLongBooleanMap map = new LongBooleanHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableLongBooleanMap newWithoutAllKeys(LongIterable keys)
    {
        MutableLongBooleanMap map = new LongBooleanHashMap(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();
            MutableLongBooleanMap deserializedMap = new LongBooleanHashMap();

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

            this.map = deserializedMap;
        }
View Full Code Here

TOP

Related Classes of com.gs.collections.impl.map.mutable.primitive.LongBooleanHashMap$InternalBooleanIterator

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.