Examples of DoublePredicate


Examples of com.carrotsearch.hppc.predicates.DoublePredicate

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

Examples of com.carrotsearch.hppc.predicates.DoublePredicate

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

Examples of com.carrotsearch.hppc.predicates.DoublePredicate

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

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

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

    public boolean containsAll(DoubleIterable source)
    {
        return source.allSatisfy(new DoublePredicate()
        {
            public boolean accept(double value)
            {
                return AbstractLazyDoubleIterable.this.contains(value);
            }
View Full Code Here

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

    public boolean retainAll(DoubleIterable source)
    {
        int oldSize = this.size();
        final DoubleSet sourceSet = source instanceof DoubleSet ? (DoubleSet) source : source.toSet();
        DoubleHashSet retained = this.select(new DoublePredicate()
        {
            public boolean accept(double value)
            {
                return sourceSet.contains(value);
            }
View Full Code Here

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

    public boolean retainAll(DoubleIterable source)
    {
        int oldSize = this.size();
        final DoubleSet sourceSet = source instanceof DoubleSet ? (DoubleSet) source : source.toSet();
        DoubleArrayList retained = this.select(new DoublePredicate()
        {
            public boolean accept(double value)
            {
                return sourceSet.contains(value);
            }
View Full Code Here

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

        return true;
    }

    public boolean containsAll(DoubleIterable source)
    {
        return source.allSatisfy(new DoublePredicate()
        {
            public boolean accept(double each)
            {
                return DoubleHashBag.this.contains(each);
            }
View Full Code Here

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

    public boolean retainAll(DoubleIterable source)
    {
        int oldSize = this.size();
        final DoubleSet sourceSet = source instanceof DoubleSet ? (DoubleSet) source : source.toSet();
        DoubleHashBag retained = this.select(new DoublePredicate()
        {
            public boolean accept(double key)
            {
                return sourceSet.contains(key);
            }
View Full Code Here

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

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

        return this.items.keysView().allSatisfy(new DoublePredicate()
        {
            public boolean accept(double key)
            {
                return DoubleHashBag.this.occurrencesOf(key) == bag.occurrencesOf(key);
            }
View Full Code Here

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

        return true;
    }

    public boolean containsAll(DoubleIterable source)
    {
        return source.allSatisfy(new DoublePredicate()
        {
            public boolean accept(double value)
            {
                return DoubleDoubleHashMap.this.contains(value);
            }
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.