Class TransportCandidate.Channel
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.nat.TransportCandidate.Channel
-
- Enclosing class:
- TransportCandidate
public static class TransportCandidate.Channel extends java.lang.Object
Type-safe enum for the transportElement channel.
-
-
Field Summary
Fields Modifier and Type Field Description static TransportCandidate.ChannelMYRTCPVOICEstatic TransportCandidate.ChannelMYRTPVOICE
-
Constructor Summary
Constructors Constructor Description Channel(java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static TransportCandidate.ChannelfromString(java.lang.String value)Returns the MediaChannel constant associated with the String value.inthashCode()booleanisNull()Return true if the channel is not valid.java.lang.StringtoString()
-
-
-
Field Detail
-
MYRTPVOICE
public static final TransportCandidate.Channel MYRTPVOICE
-
MYRTCPVOICE
public static final TransportCandidate.Channel MYRTCPVOICE
-
-
Constructor Detail
-
Channel
public Channel(java.lang.String value)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
fromString
public static TransportCandidate.Channel fromString(java.lang.String value)
Returns the MediaChannel constant associated with the String value.- Parameters:
value- the input String.- Returns:
- the channel.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isNull
public boolean isNull()
Return true if the channel is not valid.- Returns:
- true if the channel is null
-
-