@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }

    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    Port p = (Port) o;
    return p.port == port && p.type.equals(type);
  }
Represents a port containing port number and {@link PortType}
ambry-api/src/main/java/com/github/ambry/network/Port.java