Package com.carrotsearch.hppc.predicates

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


    @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

     * 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

    @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

    @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

     * 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

    @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

    @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

     * 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

    @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

TOP

Related Classes of com.carrotsearch.hppc.predicates.DoublePredicate

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.