1 7 8 package org.gjt.jclasslib.browser.config.window; 9 10 16 public class WindowState { 17 18 private String fileName; 19 private BrowserPath browserPath; 20 21 26 public WindowState(String fileName, BrowserPath browserPath) { 27 this.fileName = fileName; 28 this.browserPath = browserPath; 29 } 30 31 35 public WindowState(String fileName) { 36 this.fileName = fileName; 37 } 38 39 42 public WindowState() { 43 } 44 45 49 public String getFileName() { 50 return fileName; 51 } 52 53 57 public void setFileName(String fileName) { 58 this.fileName = fileName; 59 } 60 61 65 public BrowserPath getBrowserPath() { 66 return browserPath; 67 } 68 69 73 public void setBrowserPath(BrowserPath browserPath) { 74 this.browserPath = browserPath; 75 } 76 77 public boolean equals(Object other) { 78 79 if (fileName == null || other == null || !(other instanceof WindowState)) { 80 return false; 81 } 82 return fileName.equals(((WindowState)other).fileName); 83 } 84 85 public int hashCode() { 86 return fileName.hashCode(); 87 } 88 } 89 | Popular Tags |