|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
| 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 |
|---|
java.lang.String getName()
java.lang.String getPhone()
java.util.Set<java.lang.String> getLabels()
void addLabel(java.lang.String label)
label - the new label that will be marking this entry.void delLabel(java.lang.String label)
label - the label that will be removed. Nothing will happen if this
label is not part of this entry.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||