1 11 package org.eclipse.help.internal.context; 12 13 17 public class ContextFile { 18 19 private String bundleId; 20 private String file; 21 22 25 public ContextFile(String bundleId, String file) { 26 this.bundleId = bundleId; 27 this.file = file; 28 } 29 30 33 public String getBundleId() { 34 return bundleId; 35 } 36 37 40 public String getFile() { 41 return file; 42 } 43 44 47 public boolean equals(Object obj) { 48 if (obj instanceof ContextFile) { 49 if (obj == this) { 50 return true; 51 } 52 return bundleId.equals(((ContextFile)obj).bundleId) && file.equals(((ContextFile)obj).file); 53 } 54 return false; 55 } 56 57 60 public int hashCode() { 61 return bundleId.hashCode() + file.hashCode(); 62 } 63 } 64 | Popular Tags |