1 19 20 21 package org.netbeans.core.windows.persistence; 22 23 24 31 public class TCRefConfig { 32 33 34 public String tc_id; 35 36 37 public boolean opened; 38 39 public String previousMode; 40 41 public int previousIndex; 42 43 45 public boolean dockedInMaximizedMode; 46 48 public boolean dockedInDefaultMode; 49 50 public boolean slidedInMaximized; 51 52 53 public TCRefConfig() { 54 tc_id = ""; dockedInMaximizedMode = false; 56 dockedInDefaultMode = true; 57 slidedInMaximized = false; 58 previousIndex = -1; 59 } 60 61 public boolean equals (Object obj) { 62 if (this == obj) { 63 return true; 64 } 65 if (obj instanceof TCRefConfig) { 66 TCRefConfig tcRefCfg = (TCRefConfig) obj; 67 return (tc_id.equals(tcRefCfg.tc_id) 68 && (opened == tcRefCfg.opened) 69 && (dockedInMaximizedMode == tcRefCfg.dockedInMaximizedMode) 70 && (dockedInDefaultMode == tcRefCfg.dockedInDefaultMode) 71 && (slidedInMaximized == tcRefCfg.slidedInMaximized) 72 && (previousIndex == tcRefCfg.previousIndex)); 73 } 74 return false; 75 } 76 77 public int hashCode() { 78 int hash = 17; 79 hash = 37 * hash + tc_id.hashCode(); 80 hash = 37 * hash + (opened ? 0 : 1); 81 hash = 37 * hash + (dockedInMaximizedMode ? 0 : 1); 82 hash = 37 * hash + (dockedInDefaultMode ? 0 : 1); 83 hash = 37 * hash + (slidedInMaximized ? 0 : 1); 84 hash = 37 * hash + previousIndex; 85 return hash; 86 } 87 88 public String toString () { 89 return "TCRefConfig: tc_id=" + tc_id + ", opened=" + opened 90 + ", maximizedMode=" + dockedInMaximizedMode 91 + ", defaultMode=" + dockedInDefaultMode 92 + ", slidedInMaximized=" + slidedInMaximized; 93 } 94 95 } 96 | Popular Tags |