Ejemplo n.º 1
0
  @Override
  public boolean equals(Object o) {
    if (EqualityUtils.isSameReference(this, o)) {
      return true;
    }

    if (EqualityUtils.isNullOrNotSameClass(this, o)) {
      return false;
    }

    ServerToSegmentSetMap other = (ServerToSegmentSetMap) o;

    return EqualityUtils.isEqual(_serverToSegmentSetMap, other._serverToSegmentSetMap)
        && EqualityUtils.isEqual(_routingTable, other._routingTable);
  }
Ejemplo n.º 2
0
 @Override
 public int hashCode() {
   int result = EqualityUtils.hashCodeOf(_serverToSegmentSetMap);
   result = EqualityUtils.hashCodeOf(result, _routingTable);
   return result;
 }