1 19 package org.netbeans.core; 20 21 import java.io.File ; 22 23 import org.netbeans.performance.DataDescriptor; 24 import org.openide.filesystems.multifs.MultiXMLFSTest.FileWrapper; 25 26 29 final class MUCDataDescriptor extends DataDescriptor { 30 31 private int classCount; 32 private int fsCount; 33 34 private DataDescriptor dd; 35 36 37 public MUCDataDescriptor(int classCount, int fsCount) { 38 this.classCount = classCount; 39 this.fsCount = fsCount; 40 } 41 42 43 public int getClassCount() { 44 return classCount; 45 } 46 47 48 public int getFsCount() { 49 return fsCount; 50 } 51 52 53 public DataDescriptor getDD() { 54 return dd; 55 } 56 57 58 public void setDD(DataDescriptor dd) { 59 this.dd = dd; 60 } 61 62 63 public int hashCode() { 64 return getClassName().hashCode(); 65 } 66 67 68 public boolean equals(Object obj) { 69 if (obj == this) { 70 return true; 71 } 72 73 if (obj instanceof MUCDataDescriptor) { 74 MUCDataDescriptor dd = (MUCDataDescriptor) obj; 75 76 boolean flag = this.dd == dd.dd || this.dd == null || this.dd.equals(dd.dd); 77 78 return flag && getClassName().equals(dd.getClassName()) && classCount == dd.classCount && fsCount == dd.fsCount; 79 } 80 81 return false; 82 } 83 } 84 | Popular Tags |