Package com.gs.collections.api.iterator

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


        }

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


            return true;
        }

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

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

    }

    public ImmutableCharObjectMap<V> newWithoutAllKeys(CharIterable keys)
    {
        CharObjectHashMap<V> map = new CharObjectHashMap<V>(this);
        CharIterator iterator = keys.charIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

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

        return this;
    }

    public MutableCharObjectMap<V> withoutAllKeys(CharIterable keys)
    {
        CharIterator iterator = keys.charIterator();
        while (iterator.hasNext())
        {
            char item = iterator.next();
            this.removeKey(item);
        }
        return this;
    }
View Full Code Here

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

            CharIterator iterator = source.charIterator();
            while (iterator.hasNext())
            {
                this.remove(iterator.next());
            }
            return oldSize != LongCharHashMap.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

        this.function = function;
    }

    public CharIterator charIterator()
    {
        return new CharIterator()
        {
            private final Iterator<T> iterator = CollectCharIterable.this.iterable.iterator();

            public char next()
            {
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.