List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:ivorius.ivtoolkit.maze.components.MazeRoomConnection.java
public boolean has(MazeRoom room) { return Objects.equals(left, room) || Objects.equals(right, room); }
From source file:com.ibm.watson.catalyst.jumpqa.replacer.ConstReplacer.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; ConstReplacer other = (ConstReplacer) obj; if (!Objects.equals(other._replacement, this._replacement)) return false; if (!Objects.equals(other._pattern.toString(), this._pattern.toString())) return false; if (!Objects.equals(other._pattern.flags(), this._pattern.flags())) return false; return true;/*from w w w . ja v a 2s . c o m*/ }
From source file:edu.sdsc.scigraph.neo4j.DirectedRelationshipType.java
@Override public boolean equals(Object obj) { if (!(obj instanceof DirectedRelationshipType)) { return false; }/*from w w w . j a v a 2 s.com*/ DirectedRelationshipType c = (DirectedRelationshipType) obj; return Objects.equals(type.name(), c.getType().name()) && Objects.equals(direction, c.getDirection()); }
From source file:xyz.cloudbans.entities.request.ServerPlayerJoinRequest.java
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof ServerPlayerJoinRequest)) return false; ServerPlayerJoinRequest that = (ServerPlayerJoinRequest) o; return Objects.equals(getServer(), that.getServer()) && Objects.equals(getPlayer(), that.getPlayer()) && Objects.equals(getPlayerName(), that.getPlayerName()) && Objects.equals(getJoined(), that.getJoined()); }
From source file:gobblin.metastore.testing.TestMetadataDatabase.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TestMetadataDatabase that = (TestMetadataDatabase) o; return Objects.equals(database, that.database); }
From source file:com.haulmont.cuba.desktop.gui.components.DesktopCheckBox.java
@Override public void setValue(Object value) { DesktopBackgroundWorker.checkSwingUIAccess(); if (value == null) { value = false;/*from w ww . j a v a 2 s .c o m*/ } if (!Objects.equals(prevValue, value)) { updateComponent(value); updateInstance(); fireChangeListeners(value); } }
From source file:io.sidecar.org.Organization.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/* w w w . j av a 2 s . co m*/ if (o == null || getClass() != o.getClass()) { return false; } Organization that = (Organization) o; return Objects.equals(this.orgId, that.orgId) && Objects.equals(this.name, that.name) && Objects.equals(this.url, that.url) && Objects.equals(this.type, that.type); }
From source file:th.co.geniustree.dental.model.TypeProduct.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from ww w . ja v a2 s. co m*/ if (getClass() != obj.getClass()) { return false; } final TypeProduct other = (TypeProduct) obj; if (!Objects.equals(this.id, other.id)) { return false; } return true; }
From source file:com.connio.sdk.resource.alert.MQTTNotification.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MQTTNotification that = (MQTTNotification) o; return Objects.equals(getUrl(), that.getUrl()) && Objects.equals(getTopic(), that.getTopic()) && Objects.equals(getCredentials(), that.getCredentials()); }
From source file:com.autodesk.client.model.BaseAttributesCreatedUpdated.java
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; }/*from w w w . j av a 2 s . co m*/ if (o == null || getClass() != o.getClass()) { return false; } BaseAttributesCreatedUpdated baseAttributesCreatedUpdated = (BaseAttributesCreatedUpdated) o; return Objects.equals(this.attributes, baseAttributesCreatedUpdated.attributes); }