Enum JingleS5BTransportCandidate.Type
- java.lang.Object
-
- java.lang.Enum<JingleS5BTransportCandidate.Type>
-
- org.jivesoftware.smackx.jingle.transports.jingle_s5b.elements.JingleS5BTransportCandidate.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JingleS5BTransportCandidate.Type>
- Enclosing class:
- JingleS5BTransportCandidate
public static enum JingleS5BTransportCandidate.Type extends java.lang.Enum<JingleS5BTransportCandidate.Type>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JingleS5BTransportCandidate.Type
fromString(java.lang.String name)
int
getWeight()
static JingleS5BTransportCandidate.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JingleS5BTransportCandidate.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
assisted
public static final JingleS5BTransportCandidate.Type assisted
-
direct
public static final JingleS5BTransportCandidate.Type direct
-
proxy
public static final JingleS5BTransportCandidate.Type proxy
-
tunnel
public static final JingleS5BTransportCandidate.Type tunnel
-
-
Method Detail
-
values
public static JingleS5BTransportCandidate.Type[] 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 (JingleS5BTransportCandidate.Type c : JingleS5BTransportCandidate.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JingleS5BTransportCandidate.Type 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
-
getWeight
public int getWeight()
-
fromString
public static JingleS5BTransportCandidate.Type fromString(java.lang.String name)
-
-