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

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


        }
        if (!(obj instanceof DoubleSet))
        {
            return false;
        }
        DoubleSet set = (DoubleSet) obj;
        return set.isEmpty();
    }
View Full Code Here


        }

        public boolean retainAll(DoubleIterable source)
        {
            int oldSize = this.size();
            final DoubleSet sourceSet = source instanceof DoubleSet ? (DoubleSet) source : source.toSet();
            DoubleCharHashMap retained = DoubleCharHashMap.this.select(new DoubleCharPredicate()
            {
                public boolean accept(double key, char value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                DoubleCharHashMap.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();
            CharDoubleHashMap retained = CharDoubleHashMap.this.select(new CharDoublePredicate()
            {
                public boolean accept(char key, double value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                CharDoubleHashMap.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();
            DoubleDoubleHashMap retained = DoubleDoubleHashMap.this.select(new DoubleDoublePredicate()
            {
                public boolean accept(double key, double value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                DoubleDoubleHashMap.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();
            DoubleDoubleHashMap retained = DoubleDoubleHashMap.this.select(new DoubleDoublePredicate()
            {
                public boolean accept(double key, double value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                DoubleDoubleHashMap.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 = ObjectDoubleHashMap.this.size();
            final DoubleSet sourceSet = source instanceof DoubleSet ? (DoubleSet) source : source.toSet();
            ObjectDoubleHashMap<K> retained = ObjectDoubleHashMap.this.select(new ObjectDoublePredicate<K>()
            {
                public boolean accept(K object, double value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                ObjectDoubleHashMap.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();
            DoubleShortHashMap retained = DoubleShortHashMap.this.select(new DoubleShortPredicate()
            {
                public boolean accept(double key, short value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                DoubleShortHashMap.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

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.