Ejemplo n.º 1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((chartEvent == null) ? 0 : chartEvent.hashCode());
   result = prime * result + ((dataList == null) ? 0 : dataList.hashCode());
   result = prime * result + (hasData ? 1231 : 1237);
   result = prime * result + ((kpiInfo == null) ? 0 : kpiInfo.hashCode());
   result = prime * result + lineType;
   return result;
 }
Ejemplo n.º 2
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   LineData other = (LineData) obj;
   if (chartEvent == null) {
     if (other.chartEvent != null) return false;
   } else if (!chartEvent.equals(other.chartEvent)) return false;
   if (dataList == null) {
     if (other.dataList != null) return false;
   } else if (!dataList.equals(other.dataList)) return false;
   if (hasData != other.hasData) return false;
   if (kpiInfo == null) {
     if (other.kpiInfo != null) return false;
   } else if (!kpiInfo.equals(other.kpiInfo)) return false;
   if (lineType != other.lineType) return false;
   return true;
 }