public final class CandidateClient
extends java.lang.Object
NetMarshalServer
s.Modifier and Type | Field and Description |
---|---|
boolean |
accept
Whether the candidate should be accepted.
|
java.net.InetAddress |
address
The remote address of the candidate.
|
int |
port
The remote port of the candidate.
|
Constructor and Description |
---|
CandidateClient(java.net.InetAddress address,
int port)
Constructs a new instance of CandidateClient with an address and port.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
matchesNetMarshalClient(NetMarshalClient toCheck)
Checks if this candidate matches an existing
NetMarshalClient . |
public final java.net.InetAddress address
public final int port
public boolean accept
public CandidateClient(java.net.InetAddress address, int port)
address
- The remote address of the candidate.port
- The remote port of the candidate.java.lang.NullPointerException
- address is null.public boolean matchesNetMarshalClient(NetMarshalClient toCheck)
NetMarshalClient
.toCheck
- The client to check against.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object