List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:de.micromata.genome.util.types.Triple.java
@Override public boolean equals(Object obj) { if ((obj instanceof Triple) == false) { return false; }// www .j av a 2s . c o m Triple ot = (Triple) obj; return Objects.equals(left, ot.left) && Objects.equals(middle, ot.middle) && Objects.equals(right, ot.right); }
From source file:org.elasticsearch.xpack.watcher.notification.jira.JiraIssue.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; JiraIssue issue = (JiraIssue) o;// w ww . ja v a2s . c o m return Objects.equals(account, issue.account) && Objects.equals(fields, issue.fields) && Objects.equals(request, issue.request) && Objects.equals(response, issue.response) && Objects.equals(failureReason, issue.failureReason); }
From source file:com.autodesk.client.model.ItemAttributes.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }// ww w . j a v a 2s .c om if (o == null || getClass() != o.getClass()) { return false; } ItemAttributes itemAttributes = (ItemAttributes) o; return Objects.equals(this.displayName, itemAttributes.displayName) && Objects.equals(this.extension, itemAttributes.extension); }
From source file:org.consultjr.mvc.model.SystemConfig.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w w w .j a va 2 s . c om if (getClass() != obj.getClass()) { return false; } final SystemConfig other = (SystemConfig) obj; if (!Objects.equals(this.key, other.key)) { return false; } return true; }
From source file:fr.mycellar.domain.contact.Contact.java
@Override protected boolean dataEquals(IdentifiedEntity other) { Contact contact = (Contact) other;/*from ww w . j a v a 2 s. co m*/ return Objects.equals(producer, contact.producer) && Objects.equals(current, contact.current); }
From source file:net.bluemix.connectors.core.info.TwilioServiceInfo.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/* w ww.ja v a 2 s . c o m*/ if (obj == null || getClass() != obj.getClass()) { return false; } final TwilioServiceInfo other = (TwilioServiceInfo) obj; if (!Objects.equals(this.id, other.id)) { return false; } if (!Objects.equals(this.accountId, other.accountId)) { return false; } if (!Objects.equals(this.authToken, other.authToken)) { return false; } return true; }
From source file:eu.eubrazilcc.lvl.core.workflow.WorkflowStatus.java
@Override public boolean equals(final Object obj) { if (obj == null || !(obj instanceof WorkflowStatus)) { return false; }//from ww w .ja va2s .c o m final WorkflowStatus other = WorkflowStatus.class.cast(obj); return Objects.equals(completeness, other.completeness) && Objects.equals(status, other.status); }
From source file:com.autodesk.client.model.BadInput.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }// w w w.j a v a2 s .com if (o == null || getClass() != o.getClass()) { return false; } BadInput badInput = (BadInput) o; return Objects.equals(this.jsonapi, badInput.jsonapi) && Objects.equals(this.errors, badInput.errors); }
From source file:com.autodesk.client.model.Conflict.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/*from ww w . j av a2 s . co m*/ if (o == null || getClass() != o.getClass()) { return false; } Conflict conflict = (Conflict) o; return Objects.equals(this.jsonapi, conflict.jsonapi) && Objects.equals(this.errors, conflict.errors); }
From source file:com.autodesk.client.model.NotFound.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/* w w w . java 2s . com*/ if (o == null || getClass() != o.getClass()) { return false; } NotFound notFound = (NotFound) o; return Objects.equals(this.jsonapi, notFound.jsonapi) && Objects.equals(this.errors, notFound.errors); }