public final int length() { return size(); }
public final JS elementAt(int i) {
if(i < 0 || i >= size()) throw new ArrayIndexOutOfBoundsException(i);
- JS o = (JS) getNode(i);
- return o == NULL ? null : o;
+ Object o = getNode(i);
+ return o == NULL ? (JS)null : (JS)o;
}
public final void addElement(JS o) {
insertNode(size(),o==null ? NULL : o);
}
public final JS removeElementAt(int i) {
if(i < 0 || i >= size()) throw new ArrayIndexOutOfBoundsException(i);
- JS o = (JS) deleteNode(i);
- return o == NULL ? null : o;
+ Object o = deleteNode(i);
+ return o == NULL ? (JS)null : (JS)o;
}
public final int size() { return treeSize(); }