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

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


        }

        public boolean retainAll(ShortIterable source)
        {
            int oldSize = ObjectShortHashMap.this.size();
            final ShortSet sourceSet = source instanceof ShortSet ? (ShortSet) source : source.toSet();
            ObjectShortHashMap<K> retained = ObjectShortHashMap.this.select(new ObjectShortPredicate<K>()
            {
                public boolean accept(K object, short value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                ObjectShortHashMap.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();
            IntShortHashMap retained = IntShortHashMap.this.select(new IntShortPredicate()
            {
                public boolean accept(int key, short value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                IntShortHashMap.this.keys = retained.keys;
View Full Code Here

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

    }

    public boolean retainAll(ShortIterable source)
    {
        int oldSize = this.size();
        final ShortSet sourceSet = source instanceof ShortSet ? (ShortSet) source : source.toSet();
        ShortArrayList retained = this.select(new ShortPredicate()
        {
            public boolean accept(short value)
            {
                return sourceSet.contains(value);
            }
        });
        this.size = retained.size;
        this.items = retained.items;
        return oldSize != this.size();
View Full Code Here

    }

    public boolean retainAll(ShortIterable source)
    {
        int oldSize = this.size();
        final ShortSet sourceSet = source instanceof ShortSet ? (ShortSet) source : source.toSet();
        ShortHashBag retained = this.select(new ShortPredicate()
        {
            public boolean accept(short key)
            {
                return sourceSet.contains(key);
            }
        });
        if (retained.size() != oldSize)
        {
            this.items = retained.items;
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

        }
        if (!(obj instanceof ShortSet))
        {
            return false;
        }
        ShortSet set = (ShortSet) obj;
        if (set.size() != 1)
        {
            return false;
        }
        return set.contains(this.element);
    }
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

    }

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

        }

        public boolean retainAll(ShortIterable source)
        {
            int oldSize = this.size();
            final ShortSet sourceSet = source instanceof ShortSet ? (ShortSet) source : source.toSet();
            ShortLongHashMap retained = ShortLongHashMap.this.select(new ShortLongPredicate()
            {
                public boolean accept(short key, long value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                ShortLongHashMap.this.keys = retained.keys;
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.