|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.asteriskjava.live.CallerId
public class CallerId
Represents a Caller*ID containing name and number.
Objects of this type are immutable.
Constructor Summary | |
---|---|
CallerId(java.lang.String name,
java.lang.String number)
Creates a new CallerId. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Returns the Caller*ID name. |
java.lang.String |
getNumber()
Returns the the Caller*ID number. |
int |
hashCode()
|
java.lang.String |
toString()
Returns a string representation of this CallerId in the form "Some Name" <1234> . |
static CallerId |
valueOf(java.lang.String s)
Parses a caller id string in the form "Some Name" <1234> to a CallerId object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CallerId(java.lang.String name, java.lang.String number)
name
- the Caller*ID name.number
- the Caller*ID number.Method Detail |
---|
public java.lang.String getName()
public java.lang.String getNumber()
public static CallerId valueOf(java.lang.String s)
"Some Name" <1234>
to a CallerId object.
s
- the caller id string to parse.
null
.AstUtil.parseCallerId(String)
public java.lang.String toString()
"Some Name" <1234>
.
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |