code: public void set(int index, Number value) {
          if (isImmutable) 
              throw new UnsupportedOperationException(
                  "Cannot modify an immutable vector");           
          vector.set(getIndex(index), value);
          magnitude = -1;
      }
docs: Throws {@code UnsupportedOperationException} if called