Code example for TreeSet

Methods: size, toArray

0
	public void removeEmailAddress(String emailAddress) {
		this.emailsAddresses.remove(emailAddress);
	} 
	 
	public String[] getPhonesNumbers() {		
		return( (String[])this.phonesNumbers.toArray(new String[this.phonesNumbers.size()]) );
	} 
	 
	public String[] getEmailsAddresses() {
		return( (String[])this.emailsAddresses.toArray(new String[this.emailsAddresses.size()]) );
	} 
	 
	public void enableSms() { this.enableSmsFlag = true; }
	public void disableSms() { this.enableSmsFlag = false; }
	public void enableEmails() { this.enableEmailsFlag = true; }
	public void disableEmails() { this.enableEmailsFlag = false; }
	 
	public void send(String message) {
		 
		Log.d("Contacter", "send "+message);