public boolean hasIndex(int position) {
    return (index[position] != NOT_SET);
  }
Returns whether the DEX index of a constant has been set.

@param position the position of the constant to test.
@return {@code true} if the index has been set
@see #setIndex
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/code/MultiCstInsn.java