|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.h20.course.tp4.EntryImpl
public class EntryImpl
This is an implementation of the Location interface.
| Constructor Summary | |
|---|---|
EntryImpl(java.lang.String namep,
java.lang.String phonep)
Constructor. |
|
| 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()
Informs the name of the person who owns this telephone number. |
java.lang.String |
getPhone()
Informs the phone number. |
java.lang.String |
toString()
Returns a textual representation of this object, following the pattern: name - type, (latitude, longitude). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EntryImpl(java.lang.String namep,
java.lang.String phonep)
namep - the name of the person who owns the phone number.phonep - the phone number itself.| Method Detail |
|---|
public final java.lang.String getName()
getName in interface Entrypublic final java.lang.String getPhone()
getPhone in interface Entrypublic final java.lang.String toString()
toString in class java.lang.Objectpublic final java.util.Set<java.lang.String> getLabels()
getLabels in interface Entrypublic final void addLabel(java.lang.String label)
addLabel in interface Entrylabel - the new label that will be marking this entry.public final void delLabel(java.lang.String label)
delLabel in interface Entrylabel - 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 | ||||||||