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

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


    }

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


                : new CharBooleanHashMap().toImmutable();
    }

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

        }

        public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
        {
            int size = in.readInt();
            MutableCharBooleanMap deserializedMap = new CharBooleanHashMap();

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

            this.map = deserializedMap;
        }
View Full Code Here

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

    ImmutableCharBooleanHashMap(CharBooleanMap delegate)
    {
        this.delegate = new CharBooleanHashMap(delegate);
    }
View Full Code Here

        return this.delegate.asLazy();
    }

    public ImmutableCharBooleanMap newWithKeyValue(char key, boolean value)
    {
        MutableCharBooleanMap map = new CharBooleanHashMap(this.size() + 1);
        map.putAll(this);
        map.put(key, value);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableCharBooleanMap newWithoutKey(char key)
    {
        MutableCharBooleanMap map = new CharBooleanHashMap(this.size());
        map.putAll(this);
        map.removeKey(key);
        return map.toImmutable();
    }
View Full Code Here

        return map.toImmutable();
    }

    public ImmutableCharBooleanMap newWithoutAllKeys(CharIterable keys)
    {
        MutableCharBooleanMap map = new CharBooleanHashMap(this.size());
        map.putAll(this);
        CharIterator iterator = keys.charIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

TOP

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