Package com.gs.collections.api.iterator

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


    public ImmutableShortShortMap newWithoutAllKeys(ShortIterable keys)
    {
        MutableShortShortMap map = new ShortShortHashMap(this.size());
        map.putAll(this);
        ShortIterator iterator = keys.shortIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here


    public ImmutableShortIntMap newWithoutAllKeys(ShortIterable keys)
    {
        MutableShortIntMap map = new ShortIntHashMap(this.size());
        map.putAll(this);
        ShortIterator iterator = keys.shortIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

    public ImmutableShortBooleanMap newWithoutAllKeys(ShortIterable keys)
    {
        MutableShortBooleanMap map = new ShortBooleanHashMap(this.size());
        map.putAll(this);
        ShortIterator iterator = keys.shortIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

    public ImmutableShortByteMap newWithoutAllKeys(ShortIterable keys)
    {
        MutableShortByteMap map = new ShortByteHashMap(this.size());
        map.putAll(this);
        ShortIterator iterator = keys.shortIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

        }

        public boolean removeAll(ShortIterable source)
        {
            int oldSize = ShortCharHashMap.this.size();
            ShortIterator iterator = source.shortIterator();
            while (iterator.hasNext())
            {
                ShortCharHashMap.this.removeKey(iterator.next());
            }
            return oldSize != ShortCharHashMap.this.size();
        }
View Full Code Here

            return true;
        }

        public boolean containsAll(ShortIterable source)
        {
            ShortIterator iterator = source.shortIterator();
            while (iterator.hasNext())
            {
                if (!ShortCharHashMap.this.containsKey(iterator.next()))
                {
                    return false;
                }
            }
            return true;
View Full Code Here

    public ImmutableShortFloatMap newWithoutAllKeys(ShortIterable keys)
    {
        MutableShortFloatMap map = new ShortFloatHashMap(this.size());
        map.putAll(this);
        ShortIterator iterator = keys.shortIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

        }

        public boolean removeAll(ShortIterable source)
        {
            int oldSize = ShortFloatHashMap.this.size();
            ShortIterator iterator = source.shortIterator();
            while (iterator.hasNext())
            {
                ShortFloatHashMap.this.removeKey(iterator.next());
            }
            return oldSize != ShortFloatHashMap.this.size();
        }
View Full Code Here

            return true;
        }

        public boolean containsAll(ShortIterable source)
        {
            ShortIterator iterator = source.shortIterator();
            while (iterator.hasNext())
            {
                if (!ShortFloatHashMap.this.containsKey(iterator.next()))
                {
                    return false;
                }
            }
            return true;
View Full Code Here

    public ImmutableShortLongMap newWithoutAllKeys(ShortIterable keys)
    {
        MutableShortLongMap map = new ShortLongHashMap(this.size());
        map.putAll(this);
        ShortIterator iterator = keys.shortIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

TOP

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

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.