Package tvi.webrtc
Enum PeerConnection.PortPrunePolicy
- java.lang.Object
-
- java.lang.Enum<PeerConnection.PortPrunePolicy>
-
- tvi.webrtc.PeerConnection.PortPrunePolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PeerConnection.PortPrunePolicy>
- Enclosing class:
- PeerConnection
public static enum PeerConnection.PortPrunePolicy extends java.lang.Enum<PeerConnection.PortPrunePolicy>
Java version of webrtc::PortPrunePolicy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEEP_FIRST_READY
NO_PRUNE
PRUNE_BASED_ON_PRIORITY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PeerConnection.PortPrunePolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PeerConnection.PortPrunePolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_PRUNE
public static final PeerConnection.PortPrunePolicy NO_PRUNE
-
PRUNE_BASED_ON_PRIORITY
public static final PeerConnection.PortPrunePolicy PRUNE_BASED_ON_PRIORITY
-
KEEP_FIRST_READY
public static final PeerConnection.PortPrunePolicy KEEP_FIRST_READY
-
-
Method Detail
-
values
public static PeerConnection.PortPrunePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PeerConnection.PortPrunePolicy c : PeerConnection.PortPrunePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PeerConnection.PortPrunePolicy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-