Package bak.pcj.list

Examples of bak.pcj.list.IntList.removeElementAt()


        int[] l = dataSet.get(0);
        int size = l.length;
        startTimer();
        for (int i = 0; i < SMALL_SIZE; i++) {
            if (size == 0) break;
            c.removeElementAt(size/2);
            size--;
        }
        stopTimer();
        return SMALL_SIZE + " calls to removeElementAt(int) at middle of list with " + l.length + " existing elements";
    }
View Full Code Here


        int[] l = dataSet.get(0);
        int size = l.length;
        startTimer();
        for (int i = 0; i < SMALL_SIZE; i++) {
            if (size == 0) break;
            c.removeElementAt(0);
            size--;
        }
        stopTimer();
        return SMALL_SIZE + " calls to removeElementAt(int) at beginning of list with " + l.length + " existing elements";
    }
View Full Code Here

        int[] l = dataSet.get(0);
        int size = l.length;
        startTimer();
        for (int i = 0; i < SMALL_SIZE; i++) {
            if (size == 0) break;
            c.removeElementAt(size-1);
            size--;
        }
        stopTimer();
        return SMALL_SIZE + " calls to removeElementAt(int) at end of list with " + l.length + " existing elements";
    }
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.