List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:net.bluemix.connectors.core.info.WatsonToneAnalyzerServiceInfo.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/*from w w w.j a v a2s. c o m*/ if (obj == null || getClass() != obj.getClass()) { return false; } final WatsonToneAnalyzerServiceInfo other = (WatsonToneAnalyzerServiceInfo) obj; if (!Objects.equals(this.username, other.username)) { return false; } if (!Objects.equals(this.password, other.password)) { return false; } if (!Objects.equals(this.url, other.url)) { return false; } return Objects.equals(this.id, other.id); }
From source file:com.autodesk.client.model.ProjectAttributes.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }//www.ja v a 2 s . co m if (o == null || getClass() != o.getClass()) { return false; } ProjectAttributes projectAttributes = (ProjectAttributes) o; return Objects.equals(this.name, projectAttributes.name) && Objects.equals(this.extension, projectAttributes.extension); }
From source file:net.bluemix.connectors.core.info.WatsonSpeechToTextServiceInfo.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }//w ww . j a va2 s . c om if (obj == null || getClass() != obj.getClass()) { return false; } final WatsonSpeechToTextServiceInfo other = (WatsonSpeechToTextServiceInfo) obj; if (!Objects.equals(this.username, other.username)) { return false; } if (!Objects.equals(this.password, other.password)) { return false; } if (!Objects.equals(this.url, other.url)) { return false; } return Objects.equals(this.id, other.id); }
From source file:net.bluemix.connectors.core.info.WatsonTextToSpeechServiceInfo.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/*from w ww.ja v a2 s . c o m*/ if (obj == null || getClass() != obj.getClass()) { return false; } final WatsonTextToSpeechServiceInfo other = (WatsonTextToSpeechServiceInfo) obj; if (!Objects.equals(this.username, other.username)) { return false; } if (!Objects.equals(this.password, other.password)) { return false; } if (!Objects.equals(this.url, other.url)) { return false; } return Objects.equals(this.id, other.id); }
From source file:technology.tikal.ventas.model.pedido.GrupoPartida.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/* w w w . j a v a 2s. c o m*/ if (getClass() != obj.getClass()) { return false; } final GrupoPartida other = (GrupoPartida) obj; return Objects.equals(this.pedidoId, other.pedidoId) && Objects.equals(this.linea.getId(), other.linea.getId()) && Objects.equals(this.linea.getCatalogoId(), other.getLinea().getCatalogoId()); }
From source file:com.autodesk.client.model.CreateStorageDataAttributes.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/*from ww w .j av a 2 s. c o m*/ if (o == null || getClass() != o.getClass()) { return false; } CreateStorageDataAttributes createStorageDataAttributes = (CreateStorageDataAttributes) o; return Objects.equals(this.name, createStorageDataAttributes.name) && Objects.equals(this.extension, createStorageDataAttributes.extension); }
From source file:net.bluemix.connectors.core.info.WatsonRetrieveAndRankServiceInfo.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/*from w w w .j a v a 2s . c o m*/ if (obj == null || getClass() != obj.getClass()) { return false; } final WatsonRetrieveAndRankServiceInfo other = (WatsonRetrieveAndRankServiceInfo) obj; if (!Objects.equals(this.username, other.username)) { return false; } if (!Objects.equals(this.password, other.password)) { return false; } if (!Objects.equals(this.url, other.url)) { return false; } return Objects.equals(this.id, other.id); }
From source file:com.github.ferstl.depgraph.dependency.style.StyleKey.java
@Override public boolean equals(Object obj) { if (obj == this) { return true; }/*w w w .j ava 2 s . co m*/ if (!(obj instanceof StyleKey)) { return false; } StyleKey other = (StyleKey) obj; return Objects.equals(this.groupId, other.groupId) && Objects.equals(this.artifactId, other.artifactId) && Objects.equals(this.scope, other.scope) && Objects.equals(this.type, other.type) && Objects.equals(this.version, other.version); }
From source file:eu.eubrazilcc.lvl.storage.oauth2.linkedin.LinkedInState.java
@Override public boolean equals(final Object obj) { if (obj == null || !(obj instanceof LinkedInState)) { return false; }/*from www . j ava2s . c om*/ final LinkedInState other = LinkedInState.class.cast(obj); return Objects.equals(state, other.state) && Objects.equals(expiresIn, other.expiresIn) && Objects.equals(issuedAt, other.issuedAt) && Objects.equals(redirectUri, other.redirectUri) && Objects.equals(callback, other.callback); }
From source file:net.bluemix.connectors.core.info.WatsonTradeoffAnalyticsServiceInfo.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/* w w w .j a v a 2 s .co m*/ if (obj == null || getClass() != obj.getClass()) { return false; } final WatsonTradeoffAnalyticsServiceInfo other = (WatsonTradeoffAnalyticsServiceInfo) obj; if (!Objects.equals(this.username, other.username)) { return false; } if (!Objects.equals(this.password, other.password)) { return false; } if (!Objects.equals(this.url, other.url)) { return false; } return Objects.equals(this.id, other.id); }