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

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


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

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


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

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

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

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

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

        return this;
    }

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

        return this;
    }

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

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

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

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

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

        return this;
    }

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

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

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