public enum CandidateTcpType extends Enum<CandidateTcpType>
Enum Constant and Description |
---|
ACTIVE
The "active" TCP candidate type.
|
PASSIVE
The "passive" TCP candidate type.
|
SO
The "so" (simultaneous-open) TCP candidate type.
|
Modifier and Type | Field and Description |
---|---|
private String |
name
The name of this CandidateTcpType instance.
|
Modifier and Type | Method and Description |
---|---|
static CandidateTcpType |
parse(String candidateTcpTypeName)
Parses the string candidateTcpTypeName and return the
corresponding CandidateTcpType instance.
|
String |
toString()
Returns the name of this CandidateTcpType (e.g.
|
static CandidateTcpType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CandidateTcpType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CandidateTcpType ACTIVE
public static final CandidateTcpType PASSIVE
public static final CandidateTcpType SO
private final String name
public static CandidateTcpType[] values()
for (CandidateTcpType c : CandidateTcpType.values()) System.out.println(c);
public static CandidateTcpType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<CandidateTcpType>
public static CandidateTcpType parse(String candidateTcpTypeName) throws IllegalArgumentException
candidateTcpTypeName
- the string to parseIllegalArgumentException
- in case candidateTcpTypeName is
not a valid or currently supported candidate TCP type.Copyright © 2018. All rights reserved.