public String toHuman() {
      StringBuilder sb = new StringBuilder();

      sb.append(
          "  "
              + name
              + ": "
              + count
              + " item"
              + (count == 1 ? "" : "s")
              + "; "
              + totalSize
              + " bytes total\n");

      if (smallestSize == largestSize) {
        sb.append("    " + smallestSize + " bytes/item\n");
      } else {
        int average = totalSize / count;
        sb.append(
            "    " + smallestSize + ".." + largestSize + " bytes/item; average " + average + "\n");
      }

      return sb.toString();
    }
Generates a human-readable string for this data item.

@return string for human consumption.
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/Statistics.java