public final boolean hasIndex() {
    return (index >= 0);
  }
Gets whether or not this instance has been assigned an index.

@return {@code true} iff this instance has been assigned an index
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/IndexedItem.java