List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:me.lazerka.gae.jersey.oauth2.facebook.AccessTokenResponse.java
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof AccessTokenResponse)) return false; AccessTokenResponse that = (AccessTokenResponse) o; return Objects.equals(accessToken, that.accessToken) && Objects.equals(tokenType, that.tokenType) && Objects.equals(expiresIn, that.expiresIn); }
From source file:xyz.cloudbans.entities.request.UserLoginRequest.java
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof UserLoginRequest)) return false; UserLoginRequest that = (UserLoginRequest) o; return isKeepLoggedIn() == that.isKeepLoggedIn() && Objects.equals(getUsername(), that.getUsername()) && Objects.equals(getPassword(), that.getPassword()) && Objects.equals(getOtp(), that.getOtp()); }
From source file:dk.dma.navnet.messages.TransportMessage.java
public boolean equals(Object other) { return other instanceof TransportMessage && Objects.equals(rawMessage, ((TransportMessage) other).rawMessage); }
From source file:com.vsct.dt.strowgr.admin.nsq.payload.fragment.Server.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Server server = (Server) o;/*from w w w. j av a 2 s . c o m*/ return Objects.equals(id, server.id) && Objects.equals(backendId, server.backendId) && Objects.equals(ip, server.ip) && Objects.equals(port, server.port) && Objects.equals(context, server.context); }
From source file:com.cloud.agent.api.element.ShutDownVspCommand.java
@Override public boolean equals(Object o) { if (this == o) { return true; }//ww w . ja v a 2 s . c om if (!(o instanceof ShutDownVspCommand)) { return false; } ShutDownVspCommand that = (ShutDownVspCommand) o; return super.equals(that) && Objects.equals(_dhcpOptions, that._dhcpOptions) && Objects.equals(_network, that._network); }
From source file:net.dv8tion.jda.core.managers.fields.Field.java
@Override public boolean equals(Object o) { return isSet() && Objects.equals(o, value); }
From source file:org.awesomeagile.integrations.hackpad.PadIdentity.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/*from w w w .ja v a 2 s .c o m*/ if (o == null || getClass() != o.getClass()) { return false; } PadIdentity that = (PadIdentity) o; return Objects.equals(padId, that.padId); }
From source file:com.cloud.agent.api.sync.SyncNuageVspCmsIdCommand.java
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof SyncNuageVspCmsIdCommand)) return false; if (!super.equals(o)) return false; SyncNuageVspCmsIdCommand that = (SyncNuageVspCmsIdCommand) o; return super.equals(that) && Objects.equals(_syncType, that._syncType) && Objects.equals(_nuageVspCmsId, that._nuageVspCmsId); }
From source file:co.edu.unal.arqdsoft.presentacion.Contenido.java
/** * * @param obj/*from ww w . j av a 2s. c o m*/ * @return */ @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Contenido other = (Contenido) obj; if (!Objects.equals(this.dato, other.dato)) { return false; } if (!Objects.equals(this.html, other.html)) { return false; } return true; }
From source file:com.mycompany.securitylogin.model.User.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }// w ww . ja va2s .c o m if (getClass() != obj.getClass()) { return false; } final User other = (User) obj; if (!Objects.equals(this.id, other.id)) { return false; } return true; }