-// Copyright (C) 2003 Adam Megacz <adam@ibex.org> all rights reserved.
-//
-// You may modify, copy, and redistribute this code under the terms of
-// the GNU Library Public License version 2.1, with the exception of
-// the portion of clause 6a after the semicolon (aka the "obnoxious
-// relink clause")
+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the Apache Public Source License 2.0 ("the License").
+// You may not use this file except in compliance with the License.
package org.ibex.util;
import java.io.*;
return -1;
}
+ public void add(Object o) { addElement(o); }
public void addElement(Object o) {
if (size >= store.length - 1) grow();
store[size++] = o;
return lastElement();
}
+ public Object get(int i) { return elementAt(i); }
public Object elementAt(int i) {
return store[i];
}
store[i] = in[i];
}
+ public void remove(int i) { removeElementAt(i); }
public void removeElementAt(int i) {
if (i >= size || i < 0) throw new RuntimeException("tried to remove an element outside the vector's limits");
for(int j=i; j<size - 1; j++)