示例#1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   AveragedAnomalyRecordList other = (AveragedAnomalyRecordList) obj;
   if (averagedRecords == null) {
     if (other.averagedRecords != null) return false;
   } else if (!averagedRecords.equals(other.averagedRecords)) return false;
   if (historicalValues == null) {
     if (other.historicalValues != null) return false;
   } else if (!historicalValues.equals(other.historicalValues)) return false;
   if (Double.doubleToLongBits(total) != Double.doubleToLongBits(other.total)) return false;
   return true;
 }
 public boolean equals(Object o) {
   synchronized (mutex) {
     return list.equals(o);
   }
 }