コード例 #1
0
ファイル: FloatingLimit.java プロジェクト: phinduz/Bacnet
 @Override
 public int hashCode() {
   final int PRIME = 31;
   int result = 1;
   result = PRIME * result + ((deadband == null) ? 0 : deadband.hashCode());
   result = PRIME * result + ((highDiffLimit == null) ? 0 : highDiffLimit.hashCode());
   result = PRIME * result + ((lowDiffLimit == null) ? 0 : lowDiffLimit.hashCode());
   result = PRIME * result + ((setpointReference == null) ? 0 : setpointReference.hashCode());
   result = PRIME * result + ((timeDelay == null) ? 0 : timeDelay.hashCode());
   return result;
 }
コード例 #2
0
ファイル: FloatingLimit.java プロジェクト: phinduz/Bacnet
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   final FloatingLimit other = (FloatingLimit) obj;
   if (deadband == null) {
     if (other.deadband != null) return false;
   } else if (!deadband.equals(other.deadband)) return false;
   if (highDiffLimit == null) {
     if (other.highDiffLimit != null) return false;
   } else if (!highDiffLimit.equals(other.highDiffLimit)) return false;
   if (lowDiffLimit == null) {
     if (other.lowDiffLimit != null) return false;
   } else if (!lowDiffLimit.equals(other.lowDiffLimit)) return false;
   if (setpointReference == null) {
     if (other.setpointReference != null) return false;
   } else if (!setpointReference.equals(other.setpointReference)) return false;
   if (timeDelay == null) {
     if (other.timeDelay != null) return false;
   } else if (!timeDelay.equals(other.timeDelay)) return false;
   return true;
 }