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

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


        return this;
    }

    public IntShortHashMap withoutAllKeys(IntIterable keys)
    {
        keys.forEach(new IntProcedure()
        {
            public void value(int key)
            {
                IntShortHashMap.this.removeKey(key);
            }
View Full Code Here


        public int[] toArray()
        {
            int size = IntShortHashMap.this.size();
            final int[] result = new int[size];
            IntShortHashMap.this.forEachKey(new IntProcedure()
            {
                private int index;

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

        this.function = function;
    }

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

        });
    }

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

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

        });
    }

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

        }
    }

    public void forEach(final Procedure<? super Integer> procedure)
    {
        this.forEach(new IntProcedure()
        {
            public void value(int each)
            {
                procedure.value(each);
            }
View Full Code Here

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

    }

    public MutableIntList toList()
    {
        final MutableIntList list = new IntArrayList();
        this.forEach(new IntProcedure()
        {
            public void value(int each)
            {
                list.add(each);
            }
View Full Code Here

    }

    public MutableIntSet toSet()
    {
        final MutableIntSet set = new IntHashSet();
        this.forEach(new IntProcedure()
        {
            public void value(int each)
            {
                set.add(each);
            }
View Full Code Here

    }

    public MutableIntBag toBag()
    {
        final MutableIntBag bag = new IntHashBag();
        this.forEach(new IntProcedure()
        {
            public void value(int each)
            {
                bag.add(each);
            }
View Full Code Here

TOP

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

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.