Package org.jitsi.service.neomedia
Class DTMFRtpTone
- java.lang.Object
-
- org.jitsi.service.neomedia.DTMFRtpTone
-
public final class DTMFRtpTone extends Object
Represents all DTMF tones for RTP method (RFC4733).- Author:
- JM HEITZ, Romain Philibert, Emil Ivov
-
-
Field Summary
Fields Modifier and Type Field Description static DTMFRtpToneDTMF_0The "0" DTMF Tonestatic DTMFRtpToneDTMF_1The "1" DTMF Tonestatic DTMFRtpToneDTMF_2The "2" DTMF Tonestatic DTMFRtpToneDTMF_3The "3" DTMF Tonestatic DTMFRtpToneDTMF_4The "4" DTMF Tonestatic DTMFRtpToneDTMF_5The "5" DTMF Tonestatic DTMFRtpToneDTMF_6The "6" DTMF Tonestatic DTMFRtpToneDTMF_7The "7" DTMF Tonestatic DTMFRtpToneDTMF_8The "8" DTMF Tonestatic DTMFRtpToneDTMF_9The "9" DTMF Tonestatic DTMFRtpToneDTMF_AThe "A" DTMF Tonestatic DTMFRtpToneDTMF_BThe "B" DTMF Tonestatic DTMFRtpToneDTMF_CThe "C" DTMF Tonestatic DTMFRtpToneDTMF_DThe "D" DTMF Tonestatic DTMFRtpToneDTMF_SHARPThe "#" DTMF Tonestatic DTMFRtpToneDTMF_STARThe "*" DTMF Tone
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object target)Indicates whether some other object is "equal to" this tone.bytegetCode()Returns the RFC 4733 code of this DTMF tone.StringgetValue()Returns the string representation of this DTMF tone.inthashCode()Returns a hash code value for the object.static DTMFRtpTonemapTone(DTMFTone tone)Maps between protocol and media DTMF objects.
-
-
-
Field Detail
-
DTMF_0
public static final DTMFRtpTone DTMF_0
The "0" DTMF Tone
-
DTMF_1
public static final DTMFRtpTone DTMF_1
The "1" DTMF Tone
-
DTMF_2
public static final DTMFRtpTone DTMF_2
The "2" DTMF Tone
-
DTMF_3
public static final DTMFRtpTone DTMF_3
The "3" DTMF Tone
-
DTMF_4
public static final DTMFRtpTone DTMF_4
The "4" DTMF Tone
-
DTMF_5
public static final DTMFRtpTone DTMF_5
The "5" DTMF Tone
-
DTMF_6
public static final DTMFRtpTone DTMF_6
The "6" DTMF Tone
-
DTMF_7
public static final DTMFRtpTone DTMF_7
The "7" DTMF Tone
-
DTMF_8
public static final DTMFRtpTone DTMF_8
The "8" DTMF Tone
-
DTMF_9
public static final DTMFRtpTone DTMF_9
The "9" DTMF Tone
-
DTMF_STAR
public static final DTMFRtpTone DTMF_STAR
The "*" DTMF Tone
-
DTMF_SHARP
public static final DTMFRtpTone DTMF_SHARP
The "#" DTMF Tone
-
DTMF_A
public static final DTMFRtpTone DTMF_A
The "A" DTMF Tone
-
DTMF_B
public static final DTMFRtpTone DTMF_B
The "B" DTMF Tone
-
DTMF_C
public static final DTMFRtpTone DTMF_C
The "C" DTMF Tone
-
DTMF_D
public static final DTMFRtpTone DTMF_D
The "D" DTMF Tone
-
-
Method Detail
-
getValue
public String getValue()
Returns the string representation of this DTMF tone.- Returns:
- the String representation of this DTMF tone.
-
equals
public boolean equals(Object target)
Indicates whether some other object is "equal to" this tone.
-
hashCode
public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided byjava.util.Hashtable. The method would actually return the hashcode of the string representation of this DTMF tone.
-
getCode
public byte getCode()
Returns the RFC 4733 code of this DTMF tone.- Returns:
- the RFC 4733 code of this DTMF tone.
-
mapTone
public static DTMFRtpTone mapTone(DTMFTone tone)
Maps between protocol and media DTMF objects.- Parameters:
tone- The DTMFTone to be mapped to an DTMFRtpTone.- Returns:
- The DTMFRtpTone corresponding to the tone specified.
-
-