Third commit

pull/2/head
Nie 7 months ago
parent 2371732561
commit dea409e930

@ -82,38 +82,6 @@ public class User {
return null;
}
/**
*
* @return
*/
public static int getUserCount() {
return userMap.size();
}
/**
*
* @param userType
* @return
*/
public static int getUserCountByType(String userType) {
int count = 0;
for (User user : userMap.values()) {
if (user.getUserType().equals(userType)) {
count++;
}
}
return count;
}
/**
*
* @param username
* @return Usernull
*/
public static User getUser(String username) {
return userMap.get(username);
}
// 预设用户数据
public static Map<String, User> getPresetUsers() {
Map<String, User> users = new HashMap<>();

Loading…
Cancel
Save