Package com.gs.collections.api.iterator

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


        }

        public boolean removeAll(CharIterable source)
        {
            int oldSize = CharCharHashMap.this.size();
            CharIterator iterator = source.charIterator();
            while (iterator.hasNext())
            {
                CharCharHashMap.this.removeKey(iterator.next());
            }
            return oldSize != CharCharHashMap.this.size();
        }
View Full Code Here


    {
        if (this.isEmpty())
        {
            throw new NoSuchElementException();
        }
        CharIterator iterator = this.charIterator();
        char max = iterator.next();
        while (iterator.hasNext())
        {
            char value = iterator.next();
            if (max < value)
            {
                max = value;
            }
        }
View Full Code Here

    {
        if (this.isEmpty())
        {
            throw new NoSuchElementException();
        }
        CharIterator iterator = this.charIterator();
        char min = iterator.next();
        while (iterator.hasNext())
        {
            char value = iterator.next();
            if (value < min)
            {
                min = value;
            }
        }
View Full Code Here

        public boolean removeAll(CharIterable source)
        {
            int oldSize = ObjectCharHashMap.this.size();

            CharIterator iterator = source.charIterator();
            while (iterator.hasNext())
            {
                this.remove(iterator.next());
            }
            return oldSize != ObjectCharHashMap.this.size();
        }
View Full Code Here

    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

        }

        public boolean removeAll(CharIterable source)
        {
            int oldSize = CharShortHashMap.this.size();
            CharIterator iterator = source.charIterator();
            while (iterator.hasNext())
            {
                CharShortHashMap.this.removeKey(iterator.next());
            }
            return oldSize != CharShortHashMap.this.size();
        }
View Full Code Here

            return true;
        }

        public boolean containsAll(CharIterable source)
        {
            CharIterator iterator = source.charIterator();
            while (iterator.hasNext())
            {
                if (!CharShortHashMap.this.containsKey(iterator.next()))
                {
                    return false;
                }
            }
            return true;
View Full Code Here

        }

        public boolean removeAll(CharIterable source)
        {
            int oldSize = CharIntHashMap.this.size();
            CharIterator iterator = source.charIterator();
            while (iterator.hasNext())
            {
                CharIntHashMap.this.removeKey(iterator.next());
            }
            return oldSize != CharIntHashMap.this.size();
        }
View Full Code Here

            return true;
        }

        public boolean containsAll(CharIterable source)
        {
            CharIterator iterator = source.charIterator();
            while (iterator.hasNext())
            {
                if (!CharIntHashMap.this.containsKey(iterator.next()))
                {
                    return false;
                }
            }
            return true;
View Full Code Here

        public boolean removeAll(CharIterable source)
        {
            int oldSize = IntCharHashMap.this.size();

            CharIterator iterator = source.charIterator();
            while (iterator.hasNext())
            {
                this.remove(iterator.next());
            }
            return oldSize != IntCharHashMap.this.size();
        }
View Full Code Here

TOP

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

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.