示例#1
0
文件: UserDB.java 项目: mmbmatteo/FFC
 static void printAllUsers() {
   System.out.println("printAllUsers");
   for (User u : usersList) {
     System.out.println(u.getCredentials());
   }
 }
示例#2
0
文件: UserDB.java 项目: mmbmatteo/FFC
 static void init() {
   for (User u : usersList) {
     allCredentials.put(u.getCredentials(), u);
     allEmails.put(u.getEmail(), u);
   }
 }
示例#3
0
文件: UserDB.java 项目: mmbmatteo/FFC
 static void saveNew(String loginEmail, String loginPassword) {
   User newUser = new User(loginEmail, loginPassword);
   usersList.add(newUser);
   allCredentials.put(newUser.getCredentials(), newUser);
   init();
 }