Exemple #1
0
 /**
  * Checks if current LoginRequest object is equal to (has the same values) as the given in param.
  *
  * @param loginInfo object to equal with
  * @return true if equal, false if not
  */
 public boolean equals(LoginRequest loginInfo) {
   if (this.getJID() == loginInfo.getJID()
       && this.getVersion() == loginInfo.getVersion()
       && this.getPassword().equals(loginInfo.getPassword())) {
     return true;
   } else return false;
 }
Exemple #2
0
 /**
  * Creates LoginRequest based on other LoginRequest
  *
  * @param lr source LoginRequest
  */
 public LoginRequest(LoginRequest lr) {
   this.setJID(lr.getJID());
   this.setPassword(lr.getPassword());
   this.setVersion(lr.getVersion());
 }