List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:com.autodesk.client.model.CreateStorageDataRelationshipsTarget.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }// w w w . j a va 2s . c o m if (o == null || getClass() != o.getClass()) { return false; } CreateStorageDataRelationshipsTarget createStorageDataRelationshipsTarget = (CreateStorageDataRelationshipsTarget) o; return Objects.equals(this.data, createStorageDataRelationshipsTarget.data); }
From source file:com.autodesk.client.model.JsonApiErrorLinks.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }//from w w w.j a v a 2s .c om if (o == null || getClass() != o.getClass()) { return false; } JsonApiErrorLinks jsonApiErrorLinks = (JsonApiErrorLinks) o; return Objects.equals(this.about, jsonApiErrorLinks.about); }
From source file:org.trustedanalytics.cloud.cc.api.manageusers.User.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/*from ww w . j a va 2 s . c o m*/ if (o == null || getClass() != o.getClass()) { return false; } User other = (User) o; return Objects.equals(guid, other.guid) && Objects.equals(username, other.username) && Objects.equals(roles, other.roles) && Objects.equals(orgGuid, other.orgGuid); }
From source file:cop.raml.utils.javadoc.tags.TagLink.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof TagLink) return Objects.equals(className, ((TagLink) obj).className) && Objects.equals(param, ((TagLink) obj).param); return false; }
From source file:com.autodesk.client.model.JobAcceptedJobs.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/* www . j ava2s . c o m*/ if (o == null || getClass() != o.getClass()) { return false; } JobAcceptedJobs jobAcceptedJobs = (JobAcceptedJobs) o; return Objects.equals(this.output, jobAcceptedJobs.output); }
From source file:uk.ac.ebi.ep.pdbeadapter.publication.AuthorList.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//ww w .java 2s .c om if (getClass() != obj.getClass()) { return false; } final AuthorList other = (AuthorList) obj; return Objects.equals(this.fullName, other.fullName); }
From source file:com.autodesk.client.model.CreateStorageDataRelationships.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/*from w w w . j ava 2 s. c o m*/ if (o == null || getClass() != o.getClass()) { return false; } CreateStorageDataRelationships createStorageDataRelationships = (CreateStorageDataRelationships) o; return Objects.equals(this.target, createStorageDataRelationships.target); }
From source file:com.shadows.liquiblq.webapi.controllers.UsersController.java
@RequestMapping(value = "/login", method = RequestMethod.POST) public JSONResponse doLogin(@RequestParam("Email") String Email, @RequestParam("Password") String Password) { try {/*from w w w . ja v a 2 s .c o m*/ User user = Context.getUsersSet().GetByEmail(Email); String passwordHash = HashManager.GeneratePassword(Password, user.Salt); if (!Objects.equals(passwordHash, user.Password)) throw new BadRequestException("Wrong login!"); SessionData sessionData = new SessionData(); sessionData.IsActive = true; sessionData.UserId = user.Id; UUID SessionId = Context.getSessionsSet().Add(sessionData); return new LoginResponse(Boolean.TRUE, SessionId, Email, user.Id); } catch (Exception Exp) { return new ErrorResponse((Exp)); } }
From source file:com.mesosphere.dcos.cassandra.scheduler.resources.DaemonInfo.java
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof DaemonInfo)) return false; DaemonInfo that = (DaemonInfo) o;/* w w w . j a va 2s. co m*/ return Objects.equals(getName(), that.getName()) && Objects.equals(getId(), that.getId()) && Objects.equals(getHostname(), that.getHostname()) && Objects.equals(getSlaveId(), that.getSlaveId()) && getState() == that.getState() && getMode() == that.getMode(); }
From source file:com.autodesk.client.model.CreateVersionDataRelationshipsItem.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }// w w w . j av a 2 s . c o m if (o == null || getClass() != o.getClass()) { return false; } CreateVersionDataRelationshipsItem createVersionDataRelationshipsItem = (CreateVersionDataRelationshipsItem) o; return Objects.equals(this.data, createVersionDataRelationshipsItem.data); }