Package com.gs.collections.api.iterator

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


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


    @Override
    public int hashCode()
    {
        int hashCode = 1;
        CharIterable iterable = this.delegate.asReversed();
        CharIterator iterator = iterable.charIterator();
        while (iterator.hasNext())
        {
            char item = iterator.next();
            hashCode = 31 * hashCode + (int) item;
        }
        return hashCode;
    }
View Full Code Here

    }

    public void writeExternal(ObjectOutput out) throws IOException
    {
        out.writeInt(this.size());
        CharIterator iterator = this.delegate.asReversed().charIterator();
        while (iterator.hasNext())
        {
            char each = iterator.next();
            out.writeChar(each);
        }
    }
View Full Code Here

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

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

    public ImmutableCharByteMap newWithoutAllKeys(CharIterable keys)
    {
        MutableCharByteMap map = new CharByteHashMap(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 = CharDoubleHashMap.this.size();
            CharIterator iterator = source.charIterator();
            while (iterator.hasNext())
            {
                CharDoubleHashMap.this.removeKey(iterator.next());
            }
            return oldSize != CharDoubleHashMap.this.size();
        }
View Full Code Here

            return true;
        }

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

        }

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

            return true;
        }

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

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

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