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

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


        }

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


        }

        public boolean retainAll(ShortIterable source)
        {
            int oldSize = this.size();
            final ShortSet sourceSet = source instanceof ShortSet ? (ShortSet) source : source.toSet();
            ShortDoubleHashMap retained = ShortDoubleHashMap.this.select(new ShortDoublePredicate()
            {
                public boolean accept(short key, double value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                ShortDoubleHashMap.this.keys = retained.keys;
View Full Code Here

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

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

TOP

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

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.