Package de.javawi.jstun.test.demo.ice
Class Candidate
- java.lang.Object
-
- de.javawi.jstun.test.demo.ice.Candidate
-
- All Implemented Interfaces:
java.lang.Comparable
public class Candidate extends java.lang.Object implements java.lang.Comparable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Candidate.CandidateType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object arg0)
boolean
equals(java.lang.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)
-
-
-
Constructor Detail
-
Candidate
public Candidate(Address address, short componentId) throws java.net.SocketException, java.net.UnknownHostException, UtilityException
- Throws:
java.net.SocketException
java.net.UnknownHostException
UtilityException
-
Candidate
public Candidate(Address address, Candidate.CandidateType type, short componentId, Candidate base) throws java.net.SocketException, java.net.UnknownHostException, UtilityException
- Throws:
java.net.SocketException
java.net.UnknownHostException
UtilityException
-
-
Method Detail
-
setBase
public void setBase(Candidate base)
-
getBase
public Candidate getBase()
-
getCandidateType
public Candidate.CandidateType getCandidateType()
-
setComponentId
public void setComponentId(short componentId)
-
getComponentId
public short getComponentId()
-
setFoundationId
public void setFoundationId(int foundationId)
-
getFoundationId
public int getFoundationId()
-
setPriority
public void setPriority(int priority)
-
getPriority
public int getPriority()
-
getAddress
public Address getAddress() throws UtilityException
- Throws:
UtilityException
-
getPort
public int getPort()
-
setInUse
public void setInUse(boolean isInUse)
-
getInUse
public boolean getInUse()
-
compareTo
public int compareTo(java.lang.Object arg0)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-