Exemplo n.º 1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((dateDimension == null) ? 0 : dateDimension.hashCode());
   result = prime * result + ((aggregatedGroup == null) ? 0 : aggregatedGroup.hashCode());
   result = prime * result + ((interval == null) ? 0 : interval.hashCode());
   result = prime * result + ((timeDimension == null) ? 0 : timeDimension.hashCode());
   return result;
 }
Exemplo 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;
   LoginAggregationImpl other = (LoginAggregationImpl) obj;
   if (dateDimension == null) {
     if (other.dateDimension != null) return false;
   } else if (!dateDimension.equals(other.dateDimension)) return false;
   if (aggregatedGroup == null) {
     if (other.aggregatedGroup != null) return false;
   } else if (!aggregatedGroup.equals(other.aggregatedGroup)) return false;
   if (interval != other.interval) return false;
   if (timeDimension == null) {
     if (other.timeDimension != null) return false;
   } else if (!timeDimension.equals(other.timeDimension)) return false;
   return true;
 }