Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.neomedia
Class MediaTypeSrtpControl

java.lang.Object
  extended by net.java.sip.communicator.service.neomedia.MediaTypeSrtpControl
All Implemented Interfaces:
Comparable<MediaTypeSrtpControl>

public class MediaTypeSrtpControl
extends Object
implements Comparable<MediaTypeSrtpControl>

Utility class to combine MediaType and SrtpControlType as a map key.

Author:
Ingo Bauersachs

Field Summary
 MediaType mediaType
          The media type.
 SrtpControlType srtpControlType
          The SRTP control type.
 
Constructor Summary
MediaTypeSrtpControl(MediaType mt, SrtpControlType sct)
          Creates a new instance of this class.
 
Method Summary
 int compareTo(MediaTypeSrtpControl o)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mediaType

public final MediaType mediaType
The media type.


srtpControlType

public final SrtpControlType srtpControlType
The SRTP control type.

Constructor Detail

MediaTypeSrtpControl

public MediaTypeSrtpControl(MediaType mt,
                            SrtpControlType sct)
Creates a new instance of this class.

Parameters:
mt - The MediaType for this key.
sct - The SrtpControlType for this key.
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(MediaTypeSrtpControl o)
Specified by:
compareTo in interface Comparable<MediaTypeSrtpControl>

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.