Package com.gs.collections.api.iterator

Examples of com.gs.collections.api.iterator.IntIterator


                }
            });
        }
        else
        {
            IntIterator iterator = source.intIterator();
            while (iterator.hasNext())
            {
                int each = iterator.next();
                int occurrences = this.items.removeKeyIfAbsent(each, 0);
                this.size -= occurrences;
            }
        }
        return this.size() != oldSize;
View Full Code Here


        return this;
    }

    public MutableIntObjectMap<V> withoutAllKeys(IntIterable keys)
    {
        IntIterator iterator = keys.intIterator();
        while (iterator.hasNext())
        {
            int item = iterator.next();
            this.removeKey(item);
        }
        return this;
    }
View Full Code Here

        }

        public boolean removeAll(IntIterable source)
        {
            int oldSize = IntObjectHashMap.this.size();
            IntIterator iterator = source.intIterator();
            while (iterator.hasNext())
            {
                IntObjectHashMap.this.removeKey(iterator.next());
            }
            return oldSize != IntObjectHashMap.this.size();
        }
View Full Code Here

            return true;
        }

        public boolean containsAll(IntIterable source)
        {
            IntIterator iterator = source.intIterator();
            while (iterator.hasNext())
            {
                if (!IntObjectHashMap.this.containsKey(iterator.next()))
                {
                    return false;
                }
            }
            return true;
View Full Code Here

    public ImmutableIntCharMap newWithoutAllKeys(IntIterable keys)
    {
        MutableIntCharMap map = new IntCharHashMap(this.size());
        map.putAll(this);
        IntIterator iterator = keys.intIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

    public ImmutableIntShortMap newWithoutAllKeys(IntIterable keys)
    {
        MutableIntShortMap map = new IntShortHashMap(this.size());
        map.putAll(this);
        IntIterator iterator = keys.intIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

    public ImmutableIntLongMap newWithoutAllKeys(IntIterable keys)
    {
        MutableIntLongMap map = new IntLongHashMap(this.size());
        map.putAll(this);
        IntIterator iterator = keys.intIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

        }

        public boolean removeAll(IntIterable source)
        {
            int oldSize = IntBooleanHashMap.this.size();
            IntIterator iterator = source.intIterator();
            while (iterator.hasNext())
            {
                IntBooleanHashMap.this.removeKey(iterator.next());
            }
            return oldSize != IntBooleanHashMap.this.size();
        }
View Full Code Here

            return true;
        }

        public boolean containsAll(IntIterable source)
        {
            IntIterator iterator = source.intIterator();
            while (iterator.hasNext())
            {
                if (!IntBooleanHashMap.this.containsKey(iterator.next()))
                {
                    return false;
                }
            }
            return true;
View Full Code Here

    public ImmutableIntFloatMap newWithoutAllKeys(IntIterable keys)
    {
        MutableIntFloatMap map = new IntFloatHashMap(this.size());
        map.putAll(this);
        IntIterator iterator = keys.intIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

TOP

Related Classes of com.gs.collections.api.iterator.IntIterator

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.