mirror of
https://github.com/Akomry/sae302_applicom.git
synced 2025-12-06 08:43:54 +00:00
feat(contacts): ajout de la classe Contact.java, ContactMap.java, gestion des objets Contact dans l'interface graphique
This commit is contained in:
parent
45f18e9309
commit
e9480590a7
14 changed files with 649 additions and 36 deletions
12
chat/src/main/java/rtgre/modeles/ContactMap.java
Normal file
12
chat/src/main/java/rtgre/modeles/ContactMap.java
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package rtgre.modeles;
|
||||
import java.util.TreeMap;
|
||||
|
||||
public class ContactMap extends TreeMap<String, Contact> {
|
||||
public void add(Contact contact) {
|
||||
this.put(contact.login, contact);
|
||||
}
|
||||
|
||||
public Contact getContact(String login) {
|
||||
return this.get(login);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue