Examples of shiftLastNToTop()


Examples of edu.umd.cloud9.util.array.ArrayListOfDoubles.shiftLastNToTop()

    int shift = 10;

    ArrayListOfDoubles list = new ArrayListOfDoubles();
    for (int i = 0; i < size; i++)
      list.add(i);
    list.shiftLastNToTop(shift);

    for (int i = 0; i < list.size(); i++) {
      assertTrue(Math.abs(size - shift + i - list.get(i)) < 0.001);
    }
    list.add(size);
View Full Code Here

Examples of edu.umd.cloud9.util.array.ArrayListOfFloats.shiftLastNToTop()

    int shift = 10;

    ArrayListOfFloats list = new ArrayListOfFloats();
    for (int i = 0; i < size; i++)
      list.add(i);
    list.shiftLastNToTop(shift);

    for (int i = 0; i < list.size(); i++) {
      assertTrue(Math.abs(size - shift + i - list.get(i)) < 0.001);
    }
    list.add(size);
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.