public class Candidate extends Object implements Comparable
Modifier and Type | Class and Description |
---|---|
static class |
Candidate.CandidateType |
Constructor and Description |
---|
Candidate(Address address,
Candidate.CandidateType type,
short componentId,
Candidate base) |
Candidate(Address address,
short componentId) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object arg0) |
boolean |
equals(Object o) |
Address |
getAddress() |
Candidate |
getBase() |
Candidate.CandidateType |
getCandidateType() |
short |
getComponentId() |
int |
getFoundationId() |
boolean |
getInUse() |
int |
getPort() |
int |
getPriority() |
void |
setBase(Candidate base) |
void |
setComponentId(short componentId) |
void |
setFoundationId(int foundationId) |
void |
setInUse(boolean isInUse) |
void |
setPriority(int priority) |
public Candidate(Address address, short componentId) throws SocketException, UnknownHostException, UtilityException
public Candidate(Address address, Candidate.CandidateType type, short componentId, Candidate base) throws SocketException, UnknownHostException, UtilityException
public void setBase(Candidate base)
public Candidate getBase()
public Candidate.CandidateType getCandidateType()
public void setComponentId(short componentId)
public short getComponentId()
public void setFoundationId(int foundationId)
public int getFoundationId()
public void setPriority(int priority)
public int getPriority()
public Address getAddress() throws UtilityException
UtilityException
public int getPort()
public void setInUse(boolean isInUse)
public boolean getInUse()
public int compareTo(Object arg0)
compareTo
in interface Comparable