51 * processing or optimization for the Java virtual machine. 52 * It stores per-class structures such as a runtime 53 * constant pool, field and method data, and the code for 54 * methods and constructors. 55 */ 56 NON_HEAP("Non-heap memory"); 57 58 private final String description; 59 60 private MemoryType(String s) { 61 this.description = s; 62 } 63 64 /** 65 * Returns the string representation of this {@code MemoryType}. 66 * @return the string representation of this {@code MemoryType}. 67 */ 68 public String toString() { 69 return description; 70 } 71 72 private static final long serialVersionUID = 6992337162326171013L; 73 } | 51 * processing or optimization for the Java virtual machine. 52 * It stores per-class structures such as a runtime 53 * constant pool, field and method data, and the code for 54 * methods and constructors. 55 */ 56 NON_HEAP("Non-heap memory"); 57 58 private final String description; 59 60 private MemoryType(String s) { 61 this.description = s; 62 } 63 64 /** 65 * Returns the string representation of this {@code MemoryType}. 66 * @return the string representation of this {@code MemoryType}. 67 */ 68 public String toString() { 69 return description; 70 } 71 } |