1 19 package org.openide.filesystems.multifs; 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 MFSDataDescriptor extends DataDescriptor { 30 31 private int foCount; 32 private int fsCount; 33 34 private FileWrapper[] wrappers; 35 36 37 public MFSDataDescriptor(int foCount, int fsCount) { 38 this.foCount = foCount; 39 this.fsCount = fsCount; 40 } 41 42 43 void setFileWrappers(FileWrapper[] wrappers) { 44 this.wrappers = wrappers; 45 } 46 47 48 public FileWrapper[] getFileWrappers() { 49 return wrappers; 50 } 51 52 53 public int getFoCount() { 54 return foCount; 55 } 56 57 58 public int getFsCount() { 59 return fsCount; 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 MFSDataDescriptor) { 74 MFSDataDescriptor dd = (MFSDataDescriptor) obj; 75 return getClassName().equals(dd.getClassName()) && foCount == dd.foCount && fsCount == dd.fsCount; 76 } 77 78 return false; 79 } 80 } 81 | Popular Tags |