예제 #1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   final ChangeOfBitString other = (ChangeOfBitString) obj;
   if (bitMask == null) {
     if (other.bitMask != null) return false;
   } else if (!bitMask.equals(other.bitMask)) return false;
   if (listOfBitstringValues == null) {
     if (other.listOfBitstringValues != null) return false;
   } else if (!listOfBitstringValues.equals(other.listOfBitstringValues)) return false;
   if (timeDelay == null) {
     if (other.timeDelay != null) return false;
   } else if (!timeDelay.equals(other.timeDelay)) return false;
   return true;
 }
예제 #2
0
 @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;
 }