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

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


        }

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


            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();
            IntDoubleHashMap retained = IntDoubleHashMap.this.select(new IntDoublePredicate()
            {
                public boolean accept(int key, double value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                IntDoubleHashMap.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();
            ByteDoubleHashMap retained = ByteDoubleHashMap.this.select(new ByteDoublePredicate()
            {
                public boolean accept(byte key, double value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                ByteDoubleHashMap.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();
            DoubleObjectHashMap<V> retained = DoubleObjectHashMap.this.select(new DoubleObjectPredicate<V>()
            {
                public boolean accept(double key, V value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                DoubleObjectHashMap.this.keys = retained.keys;
View Full Code Here

            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();
            FloatDoubleHashMap retained = FloatDoubleHashMap.this.select(new FloatDoublePredicate()
            {
                public boolean accept(float key, double value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                FloatDoubleHashMap.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();
            DoubleByteHashMap retained = DoubleByteHashMap.this.select(new DoubleBytePredicate()
            {
                public boolean accept(double key, byte value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                DoubleByteHashMap.this.keys = retained.keys;
View Full Code Here

            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 = DoubleBooleanHashMap.this.size();
            final DoubleSet sourceSet = source instanceof DoubleSet ? (DoubleSet) source : source.toSet();
            DoubleBooleanHashMap retained = DoubleBooleanHashMap.this.select(new DoubleBooleanPredicate()
            {
                public boolean accept(double key, boolean value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                DoubleBooleanHashMap.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.