in jbpm/jbpm-flow/src/main/java/org/jbpm/process/core/correlation/CorrelationInstance.java [52:85]
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
CorrelationInstance other = (CorrelationInstance) obj;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if ((other.properties == null && properties != null) || (other.properties != null && properties == null)) {
return false;
}
if (properties.size() != other.properties.size()) {
return false;
}
for (Map.Entry<String, Object> entry : properties.entrySet()) {
if (!entry.getValue().equals(other.properties.get(entry.getKey()))) {
return false;
}
}
return true;
}