List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:org.awesomeagile.testing.google.AccessToken.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/*from w ww. j ava 2s . c om*/ if (o == null || getClass() != o.getClass()) { return false; } AccessToken accessToken = (AccessToken) o; return Objects.equals(expiresIn, accessToken.expiresIn) && Objects.equals(this.accessToken, accessToken.accessToken) && Objects.equals(scope, accessToken.scope) && Objects.equals(refreshToken, accessToken.refreshToken); }
From source file:com.jivesoftware.os.routing.bird.shared.ConnectionDescriptors.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }// w w w.ja va 2 s. c om if (getClass() != obj.getClass()) { return false; } final ConnectionDescriptors other = (ConnectionDescriptors) obj; if (this.timestamp != other.timestamp) { return false; } if (!Objects.equals(this.connectionDescriptors, other.connectionDescriptors)) { return false; } return true; }
From source file:com.thinkbiganalytics.metadata.api.event.category.CategoryChange.java
@Override public boolean equals(Object obj) { if (obj instanceof CategoryChange) { CategoryChange that = (CategoryChange) obj; return super.equals(that) && Objects.equals(this.categoryId, that.categoryId); } else {/* w w w . ja v a 2 s . c om*/ return false; } }
From source file:org.thevortex.lighting.jinks.icons.WinkIcon.java
@Override public boolean stateChanged(WinkIcon that) { boolean same = iconType == that.iconType && Objects.equals(iosUrl, that.iosUrl) && Objects.equals(android, that.android) && Objects.equals(images, that.images); return !same; }
From source file:ch.algotrader.dao.NamedParam.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; } else if (obj == null) { return false; } else if (!(obj instanceof NamedParam)) { return false; } else {// w ww .j ava2 s . co m NamedParam that = (NamedParam) obj; return Objects.equals(this.getName(), that.getName()) && Objects.equals(this.getValue(), that.getValue()); } }
From source file:com.autodesk.client.model.JsonApiLinksSelf.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/* w ww .j a v a 2 s . c om*/ if (o == null || getClass() != o.getClass()) { return false; } JsonApiLinksSelf jsonApiLinksSelf = (JsonApiLinksSelf) o; return Objects.equals(this.self, jsonApiLinksSelf.self); }
From source file:edu.usu.sdl.openstorefront.web.rest.model.AttributeXrefMapView.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from ww w. j a v a2 s . c om if (getClass() != obj.getClass()) { return false; } final AttributeXrefMapView other = (AttributeXrefMapView) obj; if (!Objects.equals(this.projectType, other.projectType)) { return false; } if (!Objects.equals(this.issueType, other.issueType)) { return false; } if (!Objects.equals(this.attributeType, other.attributeType)) { return false; } if (!Objects.equals(this.fieldName, other.fieldName)) { return false; } if (!Objects.equals(this.fieldId, other.fieldId)) { return false; } if (!Objects.equals(this.attributeName, other.attributeName)) { return false; } if (!Objects.equals(this.mapping, other.mapping)) { return false; } return true; }
From source file:com.autodesk.client.model.DesignAutomationEngines.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }// w w w . j a v a 2 s. c o m if (o == null || getClass() != o.getClass()) { return false; } DesignAutomationEngines designAutomationEngines = (DesignAutomationEngines) o; return Objects.equals(this.value, designAutomationEngines.value); }
From source file:com.autodesk.client.model.StorageRelationships.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/*from w w w.jav a2 s .c om*/ if (o == null || getClass() != o.getClass()) { return false; } StorageRelationships storageRelationships = (StorageRelationships) o; return Objects.equals(this.target, storageRelationships.target); }