Examples of ShortProcedure


Examples of com.carrotsearch.hppc.procedures.ShortProcedure

    public void testDescendingForEachWithProcedure()
    {
        deque.addLast(sequence);

        final IntHolder count = new IntHolder();
        ((ShortArrayDeque) deque).descendingForEach(new ShortProcedure() {
            int index = sequence.size();
            public void apply(short v)
            {
                assertEquals2(sequence.buffer[--index], v);
                count.value++;
View Full Code Here

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

        this.function = function;
    }

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

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

        });
    }

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

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

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

        });
    }

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

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

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

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

    }

    public MutableShortList toList()
    {
        final MutableShortList list = new ShortArrayList();
        this.forEach(new ShortProcedure()
        {
            public void value(short each)
            {
                list.add(each);
            }
View Full Code Here

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

    }

    public MutableShortSet toSet()
    {
        final MutableShortSet set = new ShortHashSet();
        this.forEach(new ShortProcedure()
        {
            public void value(short each)
            {
                set.add(each);
            }
View Full Code Here

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

    }

    public MutableShortBag toBag()
    {
        final MutableShortBag bag = new ShortHashBag();
        this.forEach(new ShortProcedure()
        {
            public void value(short each)
            {
                bag.add(each);
            }
View Full Code Here

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

        return this;
    }

    public ShortLongHashMap withoutAllKeys(ShortIterable keys)
    {
        keys.forEach(new ShortProcedure()
        {
            public void value(short key)
            {
                ShortLongHashMap.this.removeKey(key);
            }
View Full Code Here

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

        public short[] toArray()
        {
            int size = ShortLongHashMap.this.size();
            final short[] result = new short[size];
            ShortLongHashMap.this.forEachKey(new ShortProcedure()
            {
                private int index;

                public void value(short 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.