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();
            ByteLongHashMap retained = ByteLongHashMap.this.select(new ByteLongPredicate()
            {
                public boolean accept(byte key, long value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                ByteLongHashMap.this.keys = retained.keys;
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();
            ShortByteHashMap retained = ShortByteHashMap.this.select(new ShortBytePredicate()
            {
                public boolean accept(short key, byte value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                ShortByteHashMap.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.