1 25 package org.objectweb.easybeans.enhancer; 26 27 31 public class DefinedClass { 32 33 36 private String className; 37 38 41 private byte[] bytes; 42 43 49 public DefinedClass(final String className, final byte[] bytes) { 50 this.className = className; 51 this.bytes = bytes; 52 } 53 54 57 public byte[] getBytes() { 58 return bytes; 59 } 60 61 64 public String getClassName() { 65 return className; 66 } 67 68 73 @Override 74 public boolean equals(final Object o) { 75 if (o instanceof DefinedClass) { 76 DefinedClass other = (DefinedClass) o; 77 return className.equals(other.getClassName()); 78 } 79 return false; 80 } 81 82 85 @Override 86 public int hashCode() { 87 return className.hashCode(); 88 } 89 90 } 91 | Popular Tags |