Skip to content

Commit

Permalink
Expose ServerID fields
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Sep 24, 2024
1 parent 5923105 commit 0bfec34
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vertx-core/src/main/java/io/vertx/core/net/impl/ServerID.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* @author <a href="http://tfox.org">Tim Fox</a>
*/
public class ServerID {
public final class ServerID {

private final int port;
private final String host;
Expand All @@ -26,6 +26,14 @@ public ServerID(int port, String host) {
this.host = host;
}

public int port() {
return port;
}

public String host() {
return host;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand Down

0 comments on commit 0bfec34

Please sign in to comment.