Package com.gs.collections.api.block.procedure.primitive

Examples of com.gs.collections.api.block.procedure.primitive.DoubleProcedure


        });
    }

    public <P> void forEachWith(final Procedure2<? super V, ? super P> procedure, final P parameter)
    {
        this.iterable.forEach(new DoubleProcedure()
        {
            public void value(double each)
            {
                procedure.value(CollectDoubleToObjectIterable.this.function.valueOf(each), parameter);
            }
View Full Code Here


        public double[] toArray()
        {
            int size = DoubleCharHashMap.this.size();
            final double[] result = new double[size];
            DoubleCharHashMap.this.forEachKey(new DoubleProcedure()
            {
                private int index;

                public void value(double each)
                {
View Full Code Here

        return this;
    }

    public DoubleDoubleHashMap withoutAllKeys(DoubleIterable keys)
    {
        keys.forEach(new DoubleProcedure()
        {
            public void value(double key)
            {
                DoubleDoubleHashMap.this.removeKey(key);
            }
View Full Code Here

        public double[] toArray()
        {
            int size = DoubleDoubleHashMap.this.size();
            final double[] result = new double[size];
            DoubleDoubleHashMap.this.forEachKey(new DoubleProcedure()
            {
                private int index;

                public void value(double each)
                {
View Full Code Here

        return this;
    }

    public DoubleCharHashMap withoutAllKeys(DoubleIterable keys)
    {
        keys.forEach(new DoubleProcedure()
        {
            public void value(double key)
            {
                DoubleCharHashMap.this.removeKey(key);
            }
View Full Code Here

        public double[] toArray()
        {
            int size = DoubleShortHashMap.this.size();
            final double[] result = new double[size];
            DoubleShortHashMap.this.forEachKey(new DoubleProcedure()
            {
                private int index;

                public void value(double each)
                {
View Full Code Here

        return this;
    }

    public DoubleShortHashMap withoutAllKeys(DoubleIterable keys)
    {
        keys.forEach(new DoubleProcedure()
        {
            public void value(double key)
            {
                DoubleShortHashMap.this.removeKey(key);
            }
View Full Code Here

        }
        if (map.size() == 1)
        {
            //TODO use keysView() when available.
            final double[] array = new double[1];
            map.forEachKey(new DoubleProcedure()
            {
                public void value(double each)
                {
                    array[0] = each;
                }
View Full Code Here

        public double[] toArray()
        {
            int size = DoubleFloatHashMap.this.size();
            final double[] result = new double[size];
            DoubleFloatHashMap.this.forEachKey(new DoubleProcedure()
            {
                private int index;

                public void value(double each)
                {
View Full Code Here

        return this;
    }

    public DoubleFloatHashMap withoutAllKeys(DoubleIterable keys)
    {
        keys.forEach(new DoubleProcedure()
        {
            public void value(double key)
            {
                DoubleFloatHashMap.this.removeKey(key);
            }
View Full Code Here

TOP

Related Classes of com.gs.collections.api.block.procedure.primitive.DoubleProcedure

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.