List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:com.jivesoftware.os.upena.shared.BasicTimestampedValue.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }// w w w . java 2 s. c om if (getClass() != obj.getClass()) { return false; } final BasicTimestampedValue<?> other = (BasicTimestampedValue<?>) obj; if (this.timestamp != other.timestamp) { return false; } if (this.tombstoned != other.tombstoned) { return false; } if (!Objects.equals(this.value, other.value)) { return false; } return true; }
From source file:com.smoketurner.pipeline.application.aws.AmazonSNSNotification.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }// www . j a v a2s . c o m if ((obj == null) || (getClass() != obj.getClass())) { return false; } final AmazonSNSNotification other = (AmazonSNSNotification) obj; return Objects.equals(message, other.message) && Objects.equals(timestamp, other.timestamp); }
From source file:com.connio.sdk.resource.property.Retention.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Retention that = (Retention) o; return Objects.equals(context, that.context) && Objects.equals(type, that.type) && Objects.equals(lifetime, that.lifetime) & Objects.equals(capacity, that.capacity) && Objects.equals(condition, that.condition); }
From source file:io.swagger.model.ToolTests.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }// w ww .j ava 2s.com if (o == null || getClass() != o.getClass()) { return false; } ToolTests toolTests = (ToolTests) o; return Objects.equals(this.test, toolTests.test) && Objects.equals(this.url, toolTests.url); }
From source file:io.github.jeddict.jpa.spec.extend.Constructor.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w w w .j a v a 2s .c om if (getClass() != obj.getClass()) { return false; } final Constructor other = (Constructor) obj; if (this.getAttributes().size() != other.getAttributes().size()) { return false; } for (int i = 0; i < this.getAttributes().size(); i++) { if (!Objects.equals(this.getAttributes().get(i).getDataTypeLabel(), other.getAttributes().get(i).getDataTypeLabel())) { return false; } } return true; }
From source file:ch.cyberduck.ui.cocoa.delegate.EditMenuDelegate.java
/** * Caching last selected extension to build menu. * * @return True if menu is built./* w w w .ja va 2 s. c o m*/ */ @Override protected boolean isPopulated() { final Path selected = this.getEditable(); if (selected != null && Objects.equals(extension, selected.getExtension())) { return true; } if (selected != null) { extension = selected.getExtension(); } else { extension = null; } return false; }
From source file:de.digiway.rapidbreeze.client.model.config.ServerConfigurationModel.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }// w ww . ja v a2 s. c o m if (getClass() != obj.getClass()) { return false; } final ServerConfigurationModel other = (ServerConfigurationModel) obj; if (!Objects.equals(this.key, other.key)) { return false; } return true; }
From source file:gt.dakaik.common.Common.java
public static boolean validSession(String token, Long idUser) { Long i = activeSession.getOrDefault(token, new Long(-1)); if (Objects.equals(i, idUser)) { activeTimeSession.replace(token, minsSession); return true; } else {/*from w w w . j a va2 s . c o m*/ return false; } }
From source file:fi.otavanopisto.restfulptv.client.model.InternalServerError.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/*from w w w .j av a 2s. c om*/ if (o == null || getClass() != o.getClass()) { return false; } InternalServerError internalServerError = (InternalServerError) o; return Objects.equals(this.code, internalServerError.code) && Objects.equals(this.message, internalServerError.message); }
From source file:xyz.cloudbans.entities.request.ServerHeartbeatRequest.java
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ServerHeartbeatRequest)) return false; ServerHeartbeatRequest that = (ServerHeartbeatRequest) o; return Objects.equals(getServer(), that.getServer()) && Objects.equals(getTime(), that.getTime()) && Objects.equals(getPlayers(), that.getPlayers()); }