com.h20.course.tp4
Interface Entry

All Known Implementing Classes:
EntryImpl

public interface Entry

This interface describes a phone address entry, which consists on a name, plus a phone number. We assume that the name is the owner of the given phone number.

Author:
fpereira

Method Summary
 void addLabel(java.lang.String label)
          Adds one label to this entry.
 void delLabel(java.lang.String label)
          This method removes a given label from this entry.
 java.util.Set<java.lang.String> getLabels()
          Returns the list of labels that distinguish this entry.
 java.lang.String getName()
          Returns the name of the person who will be called through this phone number.
 java.lang.String getPhone()
          Returns a string describing the phone number that this object encodes.
 

Method Detail

getName

java.lang.String getName()
Returns the name of the person who will be called through this phone number.

Returns:
a string object.

getPhone

java.lang.String getPhone()
Returns a string describing the phone number that this object encodes.

Returns:
a string object

getLabels

java.util.Set<java.lang.String> getLabels()
Returns the list of labels that distinguish this entry.

Returns:
a list of strings representing labels.

addLabel

void addLabel(java.lang.String label)
Adds one label to this entry.

Parameters:
label - the new label that will be marking this entry.

delLabel

void delLabel(java.lang.String label)
This method removes a given label from this entry.

Parameters:
label - the label that will be removed. Nothing will happen if this label is not part of this entry.