VecI32.java 417 B

123456789101112131415161718192021222324
  1. /** This is the runtime support for generic vectors.
  2. *
  3. * Written August 2004, John Gough.
  4. *
  5. *
  6. *
  7. */
  8. package CP.CPJvec;
  9. public class VecI32 extends VecBase
  10. {
  11. public int[] elms;
  12. public void expand() {
  13. int[] tmp = new int[this.elms.length * 2];
  14. for (int i = 0; i < this.tide; i++) {
  15. tmp[i] = this.elms[i];
  16. }
  17. this.elms = tmp;
  18. }
  19. }