Examples of LongSet


Examples of com.carrotsearch.hppc.LongSet

        long[] signature = definition.getSignature();
        writeInlineTypes(signature, relation, writer, tx);


        //Write remaining properties
        LongSet writtenTypes = new LongOpenHashSet(sortKey.length + signature.length);
        if (sortKey.length > 0 || signature.length > 0) {
            for (long id : sortKey) writtenTypes.add(id);
            for (long id : signature) writtenTypes.add(id);
        }
        LongArrayList remainingTypes = new LongArrayList(8);
        for (TitanType t : relation.getPropertyKeysDirect()) {
            if (!writtenTypes.contains(t.getID())) {
                remainingTypes.add(t.getID());

            }
        }
        //Sort types before writing to ensure that value is always written the same way
View Full Code Here

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

        }

        public boolean retainAll(LongIterable source)
        {
            int oldSize = this.size();
            final LongSet sourceSet = source instanceof LongSet ? (LongSet) source : source.toSet();
            DoubleLongHashMap retained = DoubleLongHashMap.this.select(new DoubleLongPredicate()
            {
                public boolean accept(double key, long value)
                {
                    return sourceSet.contains(value);
                }
            });
            if (retained.size() != oldSize)
            {
                DoubleLongHashMap.this.keys = retained.keys;
View Full Code Here

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

        }

        public boolean retainAll(LongIterable source)
        {
            int oldSize = this.size();
            final LongSet sourceSet = source instanceof LongSet ? (LongSet) source : source.toSet();
            LongCharHashMap retained = LongCharHashMap.this.select(new LongCharPredicate()
            {
                public boolean accept(long key, char value)
                {
                    return sourceSet.contains(key);
                }
            });
            if (retained.size() != oldSize)
            {
                LongCharHashMap.this.keys = retained.keys;
View Full Code Here

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

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

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

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

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

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

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

    }

    public boolean retainAll(LongIterable source)
    {
        int oldSize = this.size();
        final LongSet sourceSet = source instanceof LongSet ? (LongSet) source : source.toSet();
        LongArrayList retained = this.select(new LongPredicate()
        {
            public boolean accept(long value)
            {
                return sourceSet.contains(value);
            }
        });
        this.size = retained.size;
        this.items = retained.items;
        return oldSize != this.size();
View Full Code Here

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

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

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

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

    }

    public boolean retainAll(LongIterable source)
    {
        int oldSize = this.size();
        final LongSet sourceSet = source instanceof LongSet ? (LongSet) source : source.toSet();
        LongHashSet retained = this.select(new LongPredicate()
        {
            public boolean accept(long value)
            {
                return sourceSet.contains(value);
            }
        });
        if (retained.size() != oldSize)
        {
            this.zeroToThirtyOne = retained.zeroToThirtyOne;
View Full Code Here

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

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

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

    }

    public boolean retainAll(LongIterable source)
    {
        int oldSize = this.size();
        final LongSet sourceSet = source instanceof LongSet ? (LongSet) source : source.toSet();
        LongHashBag retained = this.select(new LongPredicate()
        {
            public boolean accept(long key)
            {
                return sourceSet.contains(key);
            }
        });
        if (retained.size() != oldSize)
        {
            this.items = retained.items;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.