Пример #1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   DefaultAction other = (DefaultAction) obj;
   if (labels == null) {
     if (other.labels != null) return false;
   } else if (!labels.equals(other.labels)) return false;
   if (resource == null) {
     if (other.resource != null) return false;
   } else if (!resource.equals(other.resource)) return false;
   if (type == null) {
     if (other.type != null) return false;
   } else if (!type.equals(other.type)) return false;
   return true;
 }