Browse Source

Added: Javadoc for Customers nickNameAvailable()

feature-pr/shop
Maxim Volkov 3 years ago
parent
commit
cdfcc71399
  1. 6
      projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Customers.java

6
projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Customers.java

@ -5,6 +5,12 @@ import java.util.HashMap;
public class Customers { public class Customers {
HashMap<String, User> pool = new HashMap<String, User>(); HashMap<String, User> pool = new HashMap<String, User>();
/**
*
* @param nickname Is the particular Nickname free to use?
* @return true if nickname is Available.
* @return false if nickname is Available.
*/
public boolean nickNameAvailable(String nickname) { public boolean nickNameAvailable(String nickname) {
User u = pool.get(nickname); User u = pool.get(nickname);
if (null == u) { if (null == u) {

Loading…
Cancel
Save