|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.crm.PhoneNumber
public class PhoneNumber
represents a phone number; the instance is immutable
| Constructor Summary | |
|---|---|
PhoneNumber(String number)
Takes one single string that represents the complete number including everything from country-prefix to extension |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getDigits()
returns the number as a String containing only those characters that are digits |
String |
getNumber()
returns the number as originally entered |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PhoneNumber(String number)
| Method Detail |
|---|
public String getNumber()
public String getDigits()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||