INNER CODE UNIT · Java

withPortOffset

scalecube/scalecube-services · services-api/src/main/java/io/scalecube/services/Address.java:114

  public Address withPortOffset(int portOffset) {
    return Address.create(host, port + portOffset);
  }

  @Override
  public boolean equals(Object other) {
    if (this == other) {
      return true;
    }
    if (other == null || getClass() != other.getClass()) {
      return false;
    }
    Address that = (Address) other;
    return Objects.equals(host, that.host) && Objects.equals(port, that.port);
  }

  @Override
  public int hashCode() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…