Examples of FloatProcedure


Examples of com.carrotsearch.hppc.procedures.FloatProcedure

    /* */
    @Test
    public void testWithProcedureClosure()
    {
        final IntHolder count = new IntHolder();
        list.forEach(new FloatProcedure() {
            public void apply(float v)
            {
                if (v != defValue)
                    count.value++;
            }
View Full Code Here

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

    }

    public MutableFloatList toList()
    {
        final MutableFloatList list = new FloatArrayList();
        this.forEach(new FloatProcedure()
        {
            public void value(float each)
            {
                list.add(each);
            }
View Full Code Here

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

    }

    public MutableFloatSet toSet()
    {
        final MutableFloatSet set = new FloatHashSet();
        this.forEach(new FloatProcedure()
        {
            public void value(float each)
            {
                set.add(each);
            }
View Full Code Here

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

    }

    public MutableFloatBag toBag()
    {
        final MutableFloatBag bag = new FloatHashBag();
        this.forEach(new FloatProcedure()
        {
            public void value(float each)
            {
                bag.add(each);
            }
View Full Code Here

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

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

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

        this.function = function;
    }

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

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

        });
    }

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

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

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

        });
    }

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

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

        public float[] toArray()
        {
            int size = FloatLongHashMap.this.size();
            final float[] result = new float[size];
            FloatLongHashMap.this.forEachKey(new FloatProcedure()
            {
                private int index;

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

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

        }
        if (map.size() == 1)
        {
            //TODO use keysView() when available.
            final float[] array = new float[1];
            map.forEachKey(new FloatProcedure()
            {
                public void value(float each)
                {
                    array[0] = each;
                }
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.