Examples of LongPredicate


Examples of com.carrotsearch.hppc.predicates.LongPredicate

    @Override
    public int removeAll(final LongLookupContainer c)
    {
        // We know c holds sub-types of long and we're not modifying c, so go unchecked.
        final LongContainer c2 = (LongContainer) c;
        return this.removeAll(new LongPredicate()
        {
            public boolean apply(long k)
            {
                return c2.contains(k);
            }
View Full Code Here

Examples of com.carrotsearch.hppc.predicates.LongPredicate

    @Override
    public int retainAll(final LongLookupContainer c)
    {
        // We know c holds sub-types of long and we're not modifying c, so go unchecked.
        final LongContainer c2 = (LongContainer) c;
        return this.removeAll(new LongPredicate()
        {
            public boolean apply(long k)
            {
                return !c2.contains(k);
            }
View Full Code Here

Examples of com.carrotsearch.hppc.predicates.LongPredicate

     * and negates the predicate.
     */
    @Override
    public int retainAll(final LongPredicate predicate)
    {
        return removeAll(new LongPredicate()
        {
            public boolean apply(long value)
            {
                return !predicate.apply(value);
            };
View Full Code Here

Examples of com.gs.collections.api.block.predicate.primitive.LongPredicate

        return true;
    }

    public boolean containsAll(LongIterable source)
    {
        return source.allSatisfy(new LongPredicate()
        {
            public boolean accept(long value)
            {
                return DoubleLongHashMap.this.contains(value);
            }
View Full Code Here

Examples of com.gs.collections.api.block.predicate.primitive.LongPredicate

        return this.containsAll(LongSets.immutable.of(source));
    }

    public boolean containsAll(LongIterable source)
    {
        return source.allSatisfy(new LongPredicate()
        {
            public boolean accept(long value)
            {
                return AbstractLazyLongIterable.this.contains(value);
            }
View Full Code Here

Examples of com.gs.collections.api.block.predicate.primitive.LongPredicate

    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);
            }
View Full Code Here

Examples of com.gs.collections.api.block.predicate.primitive.LongPredicate

    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);
            }
View Full Code Here

Examples of com.gs.collections.api.block.predicate.primitive.LongPredicate

        return true;
    }

    public boolean containsAll(LongIterable source)
    {
        return source.allSatisfy(new LongPredicate()
        {
            public boolean accept(long each)
            {
                return LongHashBag.this.contains(each);
            }
View Full Code Here

Examples of com.gs.collections.api.block.predicate.primitive.LongPredicate

    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);
            }
View Full Code Here

Examples of com.gs.collections.api.block.predicate.primitive.LongPredicate

        if (this.sizeDistinct() != bag.sizeDistinct())
        {
            return false;
        }

        return this.items.keysView().allSatisfy(new LongPredicate()
        {
            public boolean accept(long key)
            {
                return LongHashBag.this.occurrencesOf(key) == bag.occurrencesOf(key);
            }
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.