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

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


    }

    public boolean retainAll(ByteIterable source)
    {
        int oldSize = this.size();
        final ByteSet sourceSet = source instanceof ByteSet ? (ByteSet) source : source.toSet();

        ByteHashSet retained = this.select(new BytePredicate()
        {
            public boolean accept(byte value)
            {
                return sourceSet.contains(value);
            }
        });
        if (retained.size() != oldSize)
        {
            this.bitGroup3 = retained.bitGroup3;
View Full Code Here


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

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

        }
        if (!(obj instanceof ByteSet))
        {
            return false;
        }
        ByteSet set = (ByteSet) obj;
        if (set.size() != 1)
        {
            return false;
        }
        return set.contains(this.element);
    }
View Full Code Here

    }

    public boolean retainAll(ByteIterable source)
    {
        int oldSize = this.size();
        final ByteSet sourceSet = source instanceof ByteSet ? (ByteSet) source : source.toSet();
        ByteHashBag retained = this.select(new BytePredicate()
        {
            public boolean accept(byte key)
            {
                return sourceSet.contains(key);
            }
        });
        if (retained.size() != oldSize)
        {
            this.items = retained.items;
View Full Code Here

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

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

    }

    public boolean retainAll(ByteIterable source)
    {
        int oldSize = this.size();
        final ByteSet sourceSet = source instanceof ByteSet ? (ByteSet) source : source.toSet();
        ByteArrayList retained = this.select(new BytePredicate()
        {
            public boolean accept(byte value)
            {
                return sourceSet.contains(value);
            }
        });
        this.size = retained.size;
        this.items = retained.items;
        return oldSize != this.size();
View Full Code Here

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

        }

        public boolean retainAll(ByteIterable source)
        {
            int oldSize = ObjectByteHashMap.this.size();
            final ByteSet sourceSet = source instanceof ByteSet ? (ByteSet) source : source.toSet();
            ObjectByteHashMap<K> retained = ObjectByteHashMap.this.select(new ObjectBytePredicate<K>()
            {
                public boolean accept(K object, byte value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                ObjectByteHashMap.this.keys = retained.keys;
View Full Code Here

        }

        public boolean retainAll(ByteIterable source)
        {
            int oldSize = this.size();
            final ByteSet sourceSet = source instanceof ByteSet ? (ByteSet) source : source.toSet();
            CharByteHashMap retained = CharByteHashMap.this.select(new CharBytePredicate()
            {
                public boolean accept(char key, byte value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                CharByteHashMap.this.keys = retained.keys;
View Full Code Here

        }

        public boolean retainAll(ByteIterable source)
        {
            int oldSize = this.size();
            final ByteSet sourceSet = source instanceof ByteSet ? (ByteSet) source : source.toSet();
            ByteCharHashMap retained = ByteCharHashMap.this.select(new ByteCharPredicate()
            {
                public boolean accept(byte key, char value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                ByteCharHashMap.this.keys = retained.keys;
View Full Code Here

TOP

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

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.