List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:com.mycompany.loginApp.entities.User.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 User other = (User) obj; if (!Objects.equals(this.username, other.username)) { return false; } return true; }
From source file:com.cloud.agent.api.element.ApplyAclRuleVspCommand.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/*w w w. j a v a2 s .c o m*/ if (!(o instanceof ApplyAclRuleVspCommand)) { return false; } ApplyAclRuleVspCommand that = (ApplyAclRuleVspCommand) o; return super.equals(that) && _networkReset == that._networkReset && Objects.equals(_aclType, that._aclType) && Objects.equals(_network, that._network) && Objects.equals(_aclRules, that._aclRules); }
From source file:fr.mycellar.domain.wine.Country.java
@Override protected boolean dataEquals(IdentifiedEntity other) { Country country = (Country) other; return Objects.equals(getName(), country.getName()); }
From source file:io.sidecar.org.Application.java
@Override public boolean equals(Object o) { if (this == o) { return true; }// ww w .j av a2 s . co m if (o == null || getClass() != o.getClass()) { return false; } Application that = (Application) o; return Objects.equals(this.orgId, that.orgId) && Objects.equals(this.appId, that.appId) && Objects.equals(this.description, that.description) && Objects.equals(this.name, that.name); }
From source file:pl.lodz.p.edu.ftims.poi.poi.entities.Department.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w w w.j av a 2s .com if (getClass() != obj.getClass()) { return false; } final Department other = (Department) obj; return Objects.equals(this.ID, other.ID); }
From source file:com.connio.sdk.resource.alert.WebhookNotification.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; WebhookNotification that = (WebhookNotification) o; return Objects.equals(getMethod(), that.getMethod()) && Objects.equals(getUrl(), that.getUrl()) && Objects.equals(getSignatureKey(), that.getSignatureKey()); }
From source file:edu.emory.cci.aiw.i2b2etl.dest.metadata.conceptid.SimpleConceptId.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from w ww .ja v a2s .co m*/ if (getClass() != obj.getClass()) { return false; } final SimpleConceptId other = (SimpleConceptId) obj; if (!Objects.equals(this.id, other.id)) { return false; } return true; }
From source file:com.javaeeeee.dwstart.core.Greeting.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from ww w .j ava 2 s . c o m if (getClass() != obj.getClass()) { return false; } final Greeting other = (Greeting) obj; if (!Objects.equals(this.greeting, other.greeting)) { return false; } return true; }
From source file:com.okta.sdk.models.log.LogIpAddress.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }//from w w w. j a v a 2 s. c o m if (obj == null || !(obj instanceof LogIpAddress)) { return false; } final LogIpAddress other = (LogIpAddress) obj; return Objects.equals(this.ip, other.ip) && Objects.equals(this.geographicalContext, other.geographicalContext) && Objects.equals(this.version, other.version) && Objects.equals(this.source, other.source); }
From source file:eu.eubrazilcc.lvl.storage.oauth2.ResourceOwner.java
@Override public boolean equals(final Object obj) { if (obj == null || !(obj instanceof ResourceOwner)) { return false; }/*from www.j a v a2 s . co m*/ final ResourceOwner other = ResourceOwner.class.cast(obj); return Objects.equals(ownerId, other.ownerId) && Objects.equals(user, other.user); }