opendap/src/main/java/opendap/dap/BaseTypePrimitiveVector.java
public final void setValue(int i, BaseType newVal) {
        vals[i] = newVal;
        BaseType parent = (BaseType)getTemplate().getParent();
        vals[i].setParent(parent);
    }
public final void setValue(int i, BaseType newVal) {
        vals[i] = newVal;
        BaseType parent = (BaseType)getTemplate().getParent();
        vals[i].setParent(parent);
    }
Set the i'th value of the array.

@param i      the index of the value to set.
@param newVal the new value.