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

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


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

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


        }

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

        }

        public boolean retainAll(DoubleIterable source)
        {
            int oldSize = this.size();
            final DoubleSet sourceSet = source instanceof DoubleSet ? (DoubleSet) source : source.toSet();
            LongDoubleHashMap retained = LongDoubleHashMap.this.select(new LongDoublePredicate()
            {
                public boolean accept(long key, double value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                LongDoubleHashMap.this.keys = retained.keys;
View Full Code Here

TOP

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

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.