$darkmode
DENOPTIM
SymmetricSetWithMode.java
Go to the documentation of this file.
1package denoptim.graph;
2
13{
15 protected String mode;
16
17//------------------------------------------------------------------------------
18
20 {
21 this.symItems = symItems;
22 this.mode = mode;
23 }
24
25//------------------------------------------------------------------------------
26
31 {
32 return symItems;
33 }
34
35//------------------------------------------------------------------------------
36
37 @Override
38 public boolean equals(Object o)
39 {
40 if (o == null)
41 return false;
42
43 if (o == this)
44 return true;
45
46 if (o.getClass() != getClass())
47 return false;
48
50
51 if (!this.symItems.equals(other.symItems))
52 return false;
53
54 return this.mode.equals(other.mode);
55 }
56
57//------------------------------------------------------------------------------
58
59 @Override
60 public int hashCode()
61 {
62 return symItems.hashCode() + mode.hashCode();
63 }
64
65//------------------------------------------------------------------------------
66
67}
Class representing a list of references pointing to instances that are related by some conventional c...
Class coupling a reference to a SymmetricSet with a string that we call "mode" and can is used to sto...
SymmetricSetWithMode(SymmetricSet symItems, String mode)