Package com.gs.collections.api.set.primitive

Examples of com.gs.collections.api.set.primitive.CharSet


        }

        public boolean retainAll(CharIterable source)
        {
            int oldSize = this.size();
            final CharSet sourceSet = source instanceof CharSet ? (CharSet) source : source.toSet();
            IntCharHashMap retained = IntCharHashMap.this.select(new IntCharPredicate()
            {
                public boolean accept(int key, char value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                IntCharHashMap.this.keys = retained.keys;
View Full Code Here


        }

        public boolean retainAll(CharIterable source)
        {
            int oldSize = CharBooleanHashMap.this.size();
            final CharSet sourceSet = source instanceof CharSet ? (CharSet) source : source.toSet();
            CharBooleanHashMap retained = CharBooleanHashMap.this.select(new CharBooleanPredicate()
            {
                public boolean accept(char key, boolean value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                CharBooleanHashMap.this.keys = retained.keys;
View Full Code Here

            if (!(obj instanceof CharSet))
            {
                return false;
            }

            CharSet other = (CharSet) obj;
            return this.size() == other.size() && this.containsAll(other.toArray());
        }
View Full Code Here

TOP

Related Classes of com.gs.collections.api.set.primitive.CharSet

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.