示例#1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((management == null) ? 0 : management.hashCode());
   result = prime * result + ((managementAction == null) ? 0 : managementAction.hashCode());
   return result;
 }
示例#2
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   ManagementEntity other = (ManagementEntity) obj;
   if (management == null) {
     if (other.management != null) return false;
   } else if (!management.equals(other.management)) return false;
   if (managementAction == null) {
     if (other.managementAction != null) return false;
   } else if (!managementAction.equals(other.managementAction)) return false;
   return true;
 }