Commit 9d397bdc authored by Cristina Cocho's avatar Cristina Cocho

Overwritten equals method in Property class.

parent 086338f6
......@@ -902,6 +902,18 @@ public abstract class Property implements ServerPropertyChangeListener, ICommand
public boolean equals(Object obj) {
if (obj == null) {
return false;
if (getClass() != obj.getClass()) {
return false;
final Property other = (Property)obj;
return id == other.getPropertyID();
public abstract String getType();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment