public enum CandidateType extends java.lang.Enum<CandidateType>
| Enum Constant and Description |
|---|
Host
Host candidate.
|
PeerReflexive
Peer reflexive, only valid to ICE transport.
|
Relayed
Relayed Candidate, only valid to ICE tranport.
|
ServerReflexive
Server reflexive, only valid to ICE transport.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(CandidateType type)
Get the fully formatized string of candidate type.
|
java.lang.String |
toString()
Get fully formatized string.
|
int |
value()
Get candidate type.
|
static CandidateType |
valueOf(int type)
Get candidate type
|
static CandidateType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CandidateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CandidateType Host
public static final CandidateType ServerReflexive
public static final CandidateType PeerReflexive
public static final CandidateType Relayed
public static CandidateType[] values()
for (CandidateType c : CandidateType.values()) System.out.println(c);
public static CandidateType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static CandidateType valueOf(int type)
type - The value of candidate type.java.lang.IllegalArgumentExceptionpublic int value()
public static java.lang.String format(CandidateType type)
type - The candidate type instance.public java.lang.String toString()
toString in class java.lang.Enum<CandidateType>