@Override
  public int compareTo0(OffsettedItem other) {
    if (!isInternable()) {
      throw new UnsupportedOperationException("uninternable instance");
    }

    AnnotationsDirectoryItem otherDirectory = (AnnotationsDirectoryItem) other;
    return classAnnotations.compareTo(otherDirectory.classAnnotations);
  }
{@inheritDoc}

<p><b>Note:</b>: This throws an exception if this item is not internable.

@see #isInternable
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/AnnotationsDirectoryItem.java