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

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


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

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


        return this;
    }

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

        return this;
    }

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

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

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

    @Override
    public double[] toArray()
    {
        final double[] array = new double[this.size()];
        this.forEach(new DoubleProcedure()
        {
            @SuppressWarnings("FieldMayBeFinal")
            private int index = 0;
            public void value(double each)
            {
View Full Code Here

    }

    public MutableDoubleList toList()
    {
        final MutableDoubleList list = new DoubleArrayList();
        this.forEach(new DoubleProcedure()
        {
            public void value(double each)
            {
                list.add(each);
            }
View Full Code Here

    }

    public MutableDoubleSet toSet()
    {
        final MutableDoubleSet set = new DoubleHashSet();
        this.forEach(new DoubleProcedure()
        {
            public void value(double each)
            {
                set.add(each);
            }
View Full Code Here

    }

    public MutableDoubleBag toBag()
    {
        final MutableDoubleBag bag = new DoubleHashBag();
        this.forEach(new DoubleProcedure()
        {
            public void value(double each)
            {
                bag.add(each);
            }
View Full Code Here

        this.function = function;
    }

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

        });
    }

    public void forEachWithIndex(final ObjectIntProcedure<? super V> objectIntProcedure)
    {
        this.iterable.forEach(new DoubleProcedure()
        {
            private int index;

            public void value(double each)
            {
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.