1 19 20 21 package org.netbeans.core.windows.persistence; 22 23 24 31 public class TCGroupConfig { 32 33 34 public String tc_id; 35 36 37 public boolean open; 38 39 40 public boolean close; 41 42 44 public boolean wasOpened; 45 46 47 48 public TCGroupConfig() { 49 tc_id = ""; } 51 52 public boolean equals (Object obj) { 53 if (this == obj) { 54 return true; 55 } 56 if (obj instanceof TCGroupConfig) { 57 TCGroupConfig tcGroupCfg = (TCGroupConfig) obj; 58 return tc_id.equals(tcGroupCfg.tc_id) && 59 (open == tcGroupCfg.open) && 60 (close == tcGroupCfg.close) && 61 (wasOpened == tcGroupCfg.wasOpened); 62 } 63 return false; 64 } 65 66 public int hashCode() { 67 int hash = 17; 68 hash = 37 * hash + tc_id.hashCode(); 69 hash = 37 * hash + (open ? 0 : 1); 70 hash = 37 * hash + (close ? 0 : 1); 71 hash = 37 * hash + (wasOpened ? 0 : 1); 72 return hash; 73 } 74 75 } 76 | Popular Tags |